SDK functions can be integrated to the source code of the protected application to set boundaries of the protected areas, to detect debuggers or virtualization tools.
Code markers
Service functions
Licensing functions
DogProtectBegin
void DogProtectBegin(const char *MarkerName);
The marker identifying the beginning of the protected area of the code. A call to DogProtectBegin must be placed before the first command (or procedure or function call) of the protected code block. MarkerName defines the name of the marker that looks like "DogProtectMarker"+MarkerNamе in DogProtect. For example, a marker DogProtectBegin('CheckRegistration') will look as DogProtectMarker "CheckRegistration". If the name of the marker is not set, it is given a unique name in the form of "DogProtectMarker"+marker_serial_number. You can set the compilation type of the given protected block in DogProtect.
DogProtectBeginVirtualization
void DogProtectBeginVirtualization(const char *MarkerName);
The marker identifying the beginning of the protected area of the code with the predefined "virtualization" compilation type. MarkerName defines the name of the marker. The compilation type of this marker cannot be changed during further work with DogProtect.
DogProtectBeginMutation
void DogProtectBeginMutation(const char *MarkerName);
The marker identifying the beginning of the protected area of the code with the predefined "mutation" compilation type. MarkerName defines the name of the marker. The compilation type of this marker cannot be changed during further work with DogProtect.
DogProtectBeginUltra
void DogProtectBeginUltra(const char *MarkerName);
The marker identifying the beginning of the protected area of the code with the predefined "ultra (virtualization+mutation)" compilation type. MarkerName defines the name of the marker. The compilation type of this marker cannot be changed during further work with DogProtect.
DogProtectBeginVirtualizationByKey
void DogProtectBeginVirtualizationLockByKey(const char *MarkerName);
The marker identifying the beginning of the protected area of the code with the predefined "virtualization" compilation type and the enabled "Lock to key" option. MarkerName defines the name of the marker. The compilation type of this marker cannot be changed during further work with DogProtect.
DogProtectBeginUltraLockByKey
void DogProtectBeginUltraLockByKey(const char *MarkerName);
The marker identifying the beginning of the protected area of the code with the predefined "ultra (virtualization+mutation)" compilation type and the enabled "Lock to key" option. MarkerName defines the name of the marker. The compilation type of this marker cannot be changed during further work with DogProtect.
DogProtectEnd
void DogProtectEnd(void);
The marker identifying the end of the protected area of the code. The call to DogProtectEnd must be placed after the last command (procedure or function call) of the protected code block.
DogProtectIsProtected
bool DogProtectIsProtected(void);
The DogProtectIsProtected function returns True if the file is processed by DogProtect.
DogProtectIsDebuggerPresent
bool DogProtectIsDebuggerPresent(bool CheckKernelMode);
The DogProtectIsDebuggerPresent function allows to detect the launch of the application under a debugger. The result (True/False) can be processed with in-app protection mechanisms. If CheckKernelMode=False the function checks for User-mode debuggers (OllyDBG, WinDBG etc.). If CheckKernelMode=True, both User-mode and Kernel-mode debuggers (SoftICE, Syser etc.). When protecting drivers, the value of CheckKernelMode does not make sense, because drivers always work in the kernel mode, so presence of kernel-mode debugger is always checked.
DogProtectIsVirtualMachinePresent
bool DogProtectIsVirtualMachinePresent(void);
The DogProtectIsVirtualMachinePresent function allows to detect the launch of the application under a virtual machine tool: VMware, Virtual PC, VirtualBox, Sandboxie. The result (True/False) can be processed with in-app protection mechanisms.
DogProtectIsValidImageCRC
bool DogProtectIsValidImageCRC(void);
The DogProtectIsValidImageCRC function detects the fact that the executable module has been changed in the memory of the process (only unchangeable segments of code and data are checked). The result (True/False) can be processed with in-app protection mechanisms.
DogProtectDecryptStringA
const char * DogProtectDecryptStringA(const char *Value);
The DogProtectDecryptStringA function decrypts the ANSI string constant - Value. To decrypt the constant, you must include it to the list of protected objects .
DogProtectDecryptStringW
const wchar_t * DogProtectDecryptStringW(const wchar_t *Value);
The DogProtectDecryptStringW function decrypts the Unicode string constant - Value. To decrypt the constant, you must include it to the list of protected objects.
DogProtectFreeString
bool DogProtectFreeString(const void *Value);
The DogProtectFreeString function frees dynamic memory allocated for the decrypted string. It is not necessary to free up memory, but if you do this - you must use this function. If DogProtectDecryptStringA/DogProtectDecryptStringW are used with the same parameters for the second time without destroying previously decrypted string, additional memory is not allocated.