Description

Function will check limited license expiration status.

Availability

Protection method:
REMOTE
Application status: Activated
Required features: Limited license feature

Declaration

Visual C/C++
extern "C" __declspec(dllimport) int __stdcall CheckLimitedLicense(PPCG_INTERFACE pcgi);
Visual Basic
Declare Function CheckLimitedLicense Lib "pcgint.dll" Alias "_CheckLimitedLicense@4" (ByRef pcgi As PCG_INTERFACE_STRUCT) As Long
Delphi
function CheckLimitedLicense(var pcgi: PCGI_STRUCT): longint; stdcall; external 'pcgint.dll' name '_CheckLimitedLicense@4';
Delphi 64bit
function CheckLimitedLicense(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 - License has not expired, interface structure is updated with current data.

PCGI_ERROR_LICENSE_EXPIRED - License has expired. 

If the function fails, return value is on of the following error codes:

PCGI_ERROR_LIMITED_LICENSE_DISABLED
PCGI_ERROR_APPLICATION_IS_LOCKED
PCGI_ERROR_WRONG_STRUCTURE_SIZE

Full list of return codes is available here.

Notes

- Function will return PCGI_ERROR_LIMITED_LICENSE_DISABLED code in case:

a) Application is not protected with REMOTE protection method.
b) Limited license feature is not enabled
c) Limited license feature is disabled with activation code with "Disable limited license" special flag enabled.

By default, standard license and evaluation checks are done by protection code during application startup only. Use this function to prevent user from extending license by keeping application running forever in memory and never shutting computer down.