EP_RegKeyExecutions
EP_RegKeyExecutions function returns the Total number of executions and the number of executions Left that the registration key is limited to. See Creating Keys for more details. See also the extended functions EP_RegKeyExecutionsLeft and EP_RegKeyExecutionsTotal.
Parameters
- Total - the total number of executions that the registration key is limited to.
- Left - the number of executions left.
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 key is not limited by executions;
- there is no valid registration key;
- the application is not protected.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_RegKeyExecutions( int* Total, int* Left );
Show/Hide Delphi function definition
function EP_RegKeyExecutions( var Total, Left : Cardinal) : boolean; stdcall;
Show/Hide Visual Basic function definition
Public Declare Function EP_RegKeyExecutions Lib "enigma_ide.dll" (ByRef Total As Long, ByRef Left As Long) As Byte
Show/Hide C# (.NET) function definition
public class Enigma_IDE
{
[DllImport("enigma_ide.dll", CallingConvention = CallingConvention.StdCall)]
public static extern bool EP_RegKeyExecutions(ref Int32 Total, ref Int32 Left);
}
See function examples in the installation folder.