| AntiDebugLIB Function Reference | |
GJ_Create_ADL_Serial_Number
|
BOOL GJ_Create_ADL_Serial_Number(
char* version,
char* username,
char* userinfofilename,
char* pSN
)
version
Pointer to a null-terminated string.Here the string must be "2.3.0.0".
username
Pointer to a null-terminated string. e.g. "my programme name"
userinfofilename
Pointer to a
null-terminated string that specifies the name of the file.The Serial_Number will save to this file.
A NULL pointer will not save the Serial_Number will to file.
pSN
Pointer to a null-terminated string that receives data. e.g.char adl_sn[1024].
TRUE If
the GJ_Create_ADL_Serial_Number function succeeds,The Serial_Number will save to the pSN buffer or save to the specified file; FALSE otherwise.
if(GJ_IsAntidebugWorking())
{
char adl_sn[1024];
char version[]="2.3.0.0"; //Don't use any other string ! This is the AntiDebugLIB interior Version.
char username[]="my programme name";
GJ_Create_ADL_Serial_Number(version,username,NULL,adl_sn);
CEdit* pedit=(CEdit*) GetDlgItem(IDC_EDIT_SN);
pedit->SetWindowText(adl_sn);
}
For more informations please refer to Atidebug_demo demo programme.
© Copyright 2009 AntiDebugLIB International Inc. All Rights Reserved
|