EP_RegKeyDays
EP_RegKeyDays function returns the Total number of days and the number of days Left that the registration key is limited to. See Creating Keys for more details. See also the extended functions EP_RegKeyDaysLeft and EP_RegKeyDaysTotal.
Parameters
- Total - the total number of days that the registration key is limited to.
- Left - the number of days 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 days;
- there is no valid registration key;
- the application is not protected.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_RegKeyDays( int* Total, int* Left );
Show/Hide Delphi function definition
function EP_RegKeyDays( var Total, Left : Cardinal) : boolean; stdcall;
Show/Hide Visual Basic function definition
Public Declare Function EP_RegKeyDays 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_RegKeyDays(ref Int32 Total, ref Int32 Left);
}
See function examples in the installation folder.