EP_TrialDateTillDate
EP_TrialDateTillDate function serves for retrieving start and end trial dates. Trial dates should be defined on the TRIAL CONTROL - Limitation from date till date panel. See also the extended functions EP_TrialDateTillDateStartEx and EP_TrialDateTillDateEndEx.
Parameters
- StartYear - the year of the start trial date.
- StartMonth - the month of the start trial date.
- StartDay - the day of the start trial date.
- EndYear - the year of the end trial date.
- EndMonth - the month of the end trial date.
- EndDay - the day of the end trial date.
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 limitation of the expiration date was not enabled;
- the application is not protected.
If the user's PC has several user accounts, the trial information will different for each user.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_TrialDateTillDate( int* StartYear, int* StartMonth, int* StartDay, int* EndYear, int* EndMonth, int* EndDay );
Show/Hide Delphi function definition
function EP_TrialDateTillDate( var StartYear, StartMonth, StartDay, EndYear, EndMonth, EndDay : integer) : boolean; stdcall;
Show/Hide Visual Basic function definition
Public Declare Function EP_TrialDateTillDate Lib "enigma_ide.dll" (ByRef StartYear As Long, ByRef StartMonth As Long, ByRef StartDay As Long, ByRef EndYear As Long, ByRef EndMonth As Long, ByRef EndDay 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_TrialDateTillDate(ref Int32 StartYear, ref Int32 StartMonth, ref Int32 StartDay, ref Int32 EndYear, ref Int32 EndMonth, ref Int32 EndDay);
}
See function examples in the installation folder, Examples\Trial subfolder.