<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialGetStatus |
The WLTrialGetStatus function retrieves the trial status in the current application.
int WLTrialGetStatus( int* Reserved ); |
function WLTrialGetStatus( var Reserved:Integer ):Integer; stdcall; |
Public Declare Function WLTrialGetStatus Lib "WinLicenseSDK.dll" ( Reserved As Any ) As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLTrialGetStatus(ref int Reserved);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialGetStatus(ByRef Reserved As Integer) As Integer End Function |
Parameters
Reserved
This parameter contains a special code with extra information about the status of the trial. This parameter is reserved in current versions of WinLicense.
Return Values
The return value is the trial status in the current application. The possible values are the followings:
•wlTrialOk (0) when trial OK.
•wlTrialModeNotSupported (16) when trial is not available (not selected in "Trial Settings" panel).
•wlTrialDaysExpired (1) when the trial days expired.
•wlTrialExecExpired (2) when the trial executions expired.
•wlTrialDateExpired (3) when the trial date expired.
•wlTrialRuntimExpired (4) when the runtime trial expired.
•wlTrialGlobalExpired (5) when the global trial time expired.
•wlTrialInvalidCountry (6) when the Trial does not run on the current language/country.
•wlTrialManipulated (7) when the clock has been turned back or a user has tried to cheat the trial period in your application.
See Also