logo_wupi_64x64px Implementation - Function Definition

To be able to use the encryption of a function you need to define a function. This definition can be done within AxProtector.

A function consists of several settings:

•either the function name or the map address of the memory start point of the function

•reference to a license list

•length of the part to be encrypted

It is recommended to specify the function name which will be more reliable than a map address that may change if you change the source code.

To use the function name specification you need to export the function in your code, e.g. in C++ by setting the macro WUPIDECLFUNC at the declaration of the function. During protecting the application with AxProtector / IxProtector the export table is parsed, the function is encrypted as desired and the entry is removed from the export table.

The function will be encrypted during the run of AxProtector. After the start of the application the functions remain encrypted in the memory. Therefore you have to decrypt the functions before you can use them. This has to be done by calling WupiDecryptCode with the index of the function as argument. After the function has been used you may encrypt it again by calling WupiEncryptCode. A call of an encrypted function mostly leads to an abnormal termination of the program.