EP_CheckupIsProtected
EP_CheckupIsProtected 函数非常简单实用,功能为获取被保护文件是否仍然在Enigma保护下。
返回值
如果程序在保护中,返回值为1,否则为0。
定义
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_CheckupIsProtected();
Show/Hide Delphi function definition
function EP_CheckupIsProtected : boolean;
Show/Hide Visual Basic function definition
Public Declare Function EP_CheckupIsProtected Lib "enigma_ide.dll" () As Byte
Show/Hide C# (.NET) function definition
public class Enigma_IDE
{
[DllImport("enigma_ide.dll", CallingConvention = CallingConvention.StdCall)]
public static extern bool EP_CheckupIsProtected();
}
实例
Show/Hide Delphi function example
uses
enigma_ide;
if EP_CheckupIsProtected then
begin
MessageBox(0, 'We are under protection!', 'Application', MB_OK or MB_ICONINFORMATION);
end else
begin
MessageBox(0, 'Please protect this file before usage!', 'Application', MB_OK or MB_ICONERROR);
end;
可以在安装文件夹下 Examples\CheckEnigma 子文件夹里查看函数使用实例。