AntiDebug LIB Function Reference

GJ_Create_ADL_Serial_Number

 

Syntx

       BOOL GJ_Create_ADL_Serial_Number(
                                                                 char* version,
                                                                 char* username,
                                                                 char* userinfofilename,
                                                                 char* pSN
                                                                 )

Parameters

       version

           Pointer to a null-terminated string.Here the string must be "2.1.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].

Returns


      
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.

Usage

       if(GJ_IsAntidebugWorking())
       {
             char adl_sn[1024];
             char version[]="2.1.0.0"; //Don't use any other string ! This is the AntiDebug LIB 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);
       }

Remarks

   The more informations please to reference Atidebug_demo demo programme.