EP_RegLoadAndCheckKey
EP_RegLoadAndCheckKey function serves for reading and verifying registration information. It combines couple functions EP_RegLoadKey and EP_RegCheckKey.
Parameters
The function does not have parameters.
Return Value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Remark
The function fails in the following cases:
- the registration information is not present;
- the registration information is incorrect;
- the application is not protected.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_RegLoadAndCheckKey();
Show/Hide Delphi function definition
function EP_RegLoadAndCheckKey : boolean; stdcall;
Show/Hide Visual Basic function definition
Public Declare Function EP_RegLoadAndCheckKey Lib "enigma_ide.dll" () As Boolean
Show/Hide C# (.NET) function definition
public class Enigma_IDE
{
[DllImport("enigma_ide.dll", CallingConvention = CallingConvention.StdCall)]
public static extern bool EP_RegLoadAndCheckKey();
}
Examples
Show/Hide Delphi function example
uses
enigma_ide;
function IsRegistered : boolean;
begin
Result := fasle;
if EP_RegLoadAndCheckKey then
begin
MessageBox(0, 'The Application is registered!', 'Application', 0);
Result := true;
end else
MessageBox(0, 'The Application is NOT registered!!!', 'Application', 0);
end;
Show/Hide C++ function example
#include "include/enigma_api.h"
#pragma link "include/enigma_ide.lib"
BOOL IsRegistered()
{
if (EP_RegLoadAndCheckKey)
{
MessageBox(0, "The Application is registered!", "Application", 0);
return TRUE;
} else
{
MessageBox(0, "The Application is NOT registered!!!", "Application", 0);
}
return FALSE;
}
See function examples in the installation folder, Examples subfolder.