<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialDaysLeft |
The WLTrialDaysLeft function retrieves the number of trial days left before expiring.
int WLTrialDaysLeft(void); |
function WLTrialDaysLeft():Integer; stdcall; |
Public Declare Function WLTrialDaysLeft Lib "WinLicenseSDK.dll" () As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLTrialDaysLeft();
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialDaysLeft() As Integer End Function |
Parameters
This function has no parameters.
Return Values
The return value is the number of trial days left before expiring.
If the trial has been manipulated by a user or the function is called without adding the Days Expiration option to the protected application, the return value is -1.
Remarks
Before calling WLTrialDaysLeft, you should call the function WLTrialGetStatus, to know the status of the trial (expired, manipulated, etc).
Please, notice that this function returns the number of days left when you enable the trial Days Expiration option. If you are protecting your application with Date Expiration and you want to know the number of days left, you have to use the function WLTrialDateDaysLeft.
See Also