<< Click to Display Table of Contents >>
Navigation: WinLicense > WinLicense SDK > Trial Functions >
The WLTrialGetStatus function retrieves the trial status in the current application.
Public Declare Function WLTrialGetStatus Lib "WinLicenseSDK.dll" (
Reserved As Any
) As Integer
[DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)]
public static extern int WLTrialGetStatus(ref int Reserved);
Public Shared Function WLTrialGetStatus(ByRef Reserved As Integer) As Integer
This parameter contains a special code with extra information about the status of the trial. This parameter is reserved in current versions of WinLicense.
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.