Description
Function will check demo (date and fixed date) limitations.
Availability
Protection method: | ALL |
Application status: | Demo mode |
Required features: | Demo mode, date or fixed date feature enabled. |
Declaration
Visual C/C++ |
extern "C" __declspec(dllimport) int __stdcall CheckDemoLimitations(PPCG_INTERFACE pcgi); |
Visual Basic |
Declare Function CheckDemoLimitations Lib "pcgint.dll" Alias "_CheckDemoLimitations@4" (ByRef pcgi As PCG_INTERFACE_STRUCT) As Long |
Delphi |
function CheckDemoLimitations(var pcgi: PCGI_STRUCT): longint; stdcall; external 'pcgint.dll' name '_CheckDemoLimitations@4'; |
Delphi 64bit |
function CheckDemoLimitations(var pcgi: PCGI_STRUCT): Int64; stdcall; external 'pcgint64.dll'; |
Parameters
PPCG_INTERFACE - Pointer to buffer for interface structure
Return values
If the function succeeds, one of the following codes is returned:
PCGI_STATUS_OK - Evaluation has not expired, interface structure is updated with current data.
PCGI_ERROR_EVALUATION_PERIOD_EXPIRED - Evaluation period has expired.
If the function fails, return value is on of the following error codes:
PCGI_ERROR_DEMO_MODE_DISABLED
PCGI_ERROR_WRONG_STRUCTURE_SIZE
PCGI_CRITICAL_ERROR
Full list of return codes is available here.
Notes
- Function will return PCGI_ERROR_DEMO_MODE_DISABLED code if:
a) DEMO mode is disabled.
b) DEMO mode is enabled but both date and fixed date limitations are not enabled.
c) REMOTE protection method: demo mode is no longer active because application is activated.