AntiDebug LIB Function Reference

GJ_encrypt_custom_function
GJ_encrypt_custom_function_demo

 

Syntx

        BOOL GJ_encrypt_custom_function(
                                                                BYTE* _custom_function,
                                                                unsigned int n_custom_function_size,
                                                                char* function_name
                                                                )

        BOOL GJ_encrypt_custom_function_demo(
                                                                BYTE* _custom_function,
                                                                unsigned int n_custom_function_size,
                                                                char* function_name
                                                                )

Parameters

        _custom_function

            The pointer to the custom function code.

     n_custom_function_size

            The size of custom function code.

     function_name

            The name of custom function.

Returns

    TRUE if encrypt custom function success; FALSE otherwise.

Remarks

    GJ_encrypt_custom_function (or GJ_encrypt_custom_function_demo) Only used in another no released project,the custom function is debuged and encrypted in that project.When GJ_encrypt_custom_function (or GJ_encrypt_custom_function_demo) return TRUE,it will generate "founction_name.h" file.The encrypted code of custom function is included in it.Than include this header file to the release project,invoke GJ_load_custom_founction (or GJ_load_custom_founction_demo) to decrypt the custom function code and execute,when the custom function is not invoked again,invoke GJ_free_custom_founction to clear the code of custom function. The more informations please to reference Atidebug_demo demo programme.