EP_RegLoadAndCheckKey
EP_RegLoadAndCheckKey 用来读取和验证注册信息,包含两个函数 EP_RegLoadKey 和 EP_RegCheckKey 。
参数
此函数无参数。
返回值
如果函数成功执行,返回值为 1 ,否则为 0 。
备注
在以下情况函数不会执行成功:
定义
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();
}
实例
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;
}
可以在安装文件夹下的 Examples 子文件夹查看函数实例。