EP_CheckupIsProtected
The EP_CheckupIsProtected function has a very simple purpose, it is used to check if the file is protected or not.
Return Value
The function returns 0 if the file is not protected and 1 if the file is protected.
Definition
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();
}
Examples
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;
See function examples in the installation folder, Examples\CheckEnigma subfolder.