AntiDebug LIB Function Reference
aaa

GJ_OpenAntidebug
GJ_OpenAntidebug_demo

 

 

Syntx

BOOL GJ_OpenAntidebug(
                             
           char* antidebug_userid,
                             
          char* antidebug_licence_filename,
                          
              UINT antidebug_append_data_len,
                           
             BYTE* antidebug_append_data
                         
               );

BOOL GJ_OpenAntidebug_demo(
                      
                  char* antidebug_userid,
                     
                   char* antidebug_licence_filename,
                     
                   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_filename

    Pointer to a null-terminated string that specifies the name of the AntiDebug LIB license file name.

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_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.