How protect an application for NOt copy ?
user code + harddisk number ?
have you an sample function ?
IF lizenz() = .F.
Msginfo("no lizenz")
ENDIF
func Lizenz()
LOCAL cLizenzNetz := GetPvProfString( "LIZENZ","Lizenz", "9999", ".\INI\LIZENZ.INI" )
LOCAL sninfo := ALLTRIM(nSerialHD())
LOCAL cBiosDate := fBios()
IF ALLTRIM(cLizenzNetz) = "ABC" + ALLTRIM(substr(snInfo,3,2) + "-" + "99" + substr(cBiosDate,7,1) + substr(snInfo,2,1) + substr(cBiosDate,8,1))
return(.t.)
ENDIF
return (.f.)
function fBios()
local oReg
local uVar
If Empty( uVar )
oReg := TReg32():New( HKEY_local_MACHINE, "Enum\Root\*PNP0C01\0000", .f. )
uVar := oReg:Get( "BIOSDate", "" )
oReg:Close()
Endif
Return(uVar)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 74 guests