| AntiDebugLIB Function Reference | |
GJ_OpenAntidebugB
|
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(
char* antidebug_userid,
UINT Antidebug_licence_file_len,
BYTE* Antidebug_licence_file,
UINT antidebug_append_data_len,
BYTE* antidebug_append_data,
UINT32 uGJ_Macro
);
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
);
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,
UINT32 uGJ_Macro
);
antidebug_userid
Pointer to a null-terminated string that specifies the name of the AntiDebugLIB 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 in bytesize,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 except 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 ,size of file is 3.
If your appending data are six bytes 123456,the file's content is 0x01 0x02 0x03 0x04 0x05 0x06 ,size of file is 6.antidebug_append_data
Pointer to a data buffer of the append data
uGJ_Macro
Encryption Macro Parameter.
If the return value is TRUE,it does't mean registeration is successful.To invoke AntiDebugLIB function like GJ_add or GJ_add_demo or any other functions,if it works correctly ,that means registeration is successful,otherwise registeration is failed.
When the program is started,invoke the GJ_OpenAntidebug or GJ_OpenAntidebug_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 and AntidebugLIB driver can't be removed.
© Copyright 2009 AntiDebugLIB International Inc. All Rights Reserved
|