<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialGetTrialRestrictions |
The WLTrialGetTrialRestrictions function retrieves a bit mask with the trial restrictions included in the protected application, that is, the restrictions set in the "Trial Settings" panel in WinLicense.
int WLTrialGetTrialRestrictions(void); |
function WLTrialGetTrialRestrictions():Integer; stdcall; |
Public Declare Function WLTrialGetTrialRestrictions Lib "WinLicenseSDK.dll" () As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLTrialGetTrialRestrictions();
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialGetTrialRestrictions() As Integer End Function |
Parameters
This function has no parameters.
Return Values
The return value is a bit mask with the trial restrictions included in the protected application. Current supported values:
Value |
Meaning
|
wlTrialRestrictionUnlimited 0x0000
|
No Trial restrictions set or Unlimited option checked |
wlTrialRestrictionDays 0x0001 |
Days expiration is enabled
|
wlTrialRestrictionExec 0x0002 |
Executions expiration is enabled
|
wlTrialRestrictionDate 0x0004
|
Date expiration is enabled |
wlTrialRestrictionRuntime 0x0008
|
Runtime restriction is enabled |
wlTrialRestrictionGlobalTime 0x0010
|
Global time restriction is enabled |
wlTrialRestrictionCountry 0x0020
|
Country restriction is enabled |