<< Click to Display Table of Contents >>
Navigation: WinLicense > WinLicense SDK > Trial Functions >
The WLTrialDaysLeft function retrieves the number of trial days left before expiring.
function WLTrialDaysLeft():Integer; stdcall;
Public Declare Function WLTrialDaysLeft Lib "WinLicenseSDK.dll" () As Integer
[DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)]
public static extern int WLTrialDaysLeft();
Public Shared Function WLTrialDaysLeft() As Integer
This function has no parameters.
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.
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.