| AntiDebug LIB Function Reference | |
GJ_OpenAntidebugB
|
Syntx
BOOL GJ_OpenAntidebugB(char* antidebug_userid,
UINT Antidebug_licence_file_len,
BYTE* Antidebug_licence_file,
UINT antidebug_append_data_len,
BYTE* antidebug_append_data
);
BOOL GJ_OpenAntidebugB_demo(char* antidebug_userid,
UINT Antidebug_licence_file_len,
BYTE* Antidebug_licence_file,
UINT antidebug_append_data_len,
BYTE* antidebug_append_data
);
Parameters
antidebug_userid
Pointer to a null-terminated string that specifies the name of the AntiDebug LIB USERID(ADL UserID).
Antidebug_licence_file_len
Licence data length.
Antidebug_licence_file
Pointer to the buffer of Licence data.
antidebug_append_data_len
Appending data length of byte,MAX_LENGTH=300.
The appending data is not necessary.
The appending data is private data defined by the program developer,it may be program's dactylogram data generated dynamically by some algorithms(e.g. MD5),also it may be serial number of hardware device.
The appending data should be writed into a file which does't include any other data. Of course anyone can't get it besides the author.This file would be used when generating the LICENSE.
Example: If your appending data are three chars "123",the file's content is 0x31 0x32 0x33 ,fiesize is 3.
If your appending data are six byte 123456,the file's content is 0x01 0x02 0x03 0x04 0x05 0x06 ,fiesize is 6.antidebug_append_data
Pointer to a data buffer of the append data.
Returns
TRUE
if open the antidebug lib driver success; FALSE otherwise.
Remarks
If the return value is TRUE,it does't mean register success.To test AntiDebug LIB function like GJ_add or GJ_add_demo,if it work correctly ,that means register success,otherwise register failed.
When the program is started,invoke the GJ_OpenAntidebugB or GJ_OpenAntidebugB_demo one time,before the programme is closed,don't forget to invoke GJ_CloseAntidebug or GJ_CloseAntidebug_demo.Otherwise the memory will be leaked.