<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialDateDaysLeft |
The WLTrialDateDaysLeft function retrieves the number of trial days left when you are protecting with the option Date Expiration.
int WLTrialDateDaysLeft(void); |
function WLTrialDateDaysLeft():Integer; stdcall; |
Public Declare Function WLTrialDateDaysLeft Lib "WinLicenseSDK.dll" () As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLTrialDateDaysLeft();
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialDateDaysLeft() 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 current application does not have trial expiration date, the return value is wlNoTrialDate (-1).
Remarks
Please, notice that this function returns the number of days left when you enable the trial Date Expiration option. If you are protecting your application with Days Expiration and you want to know the number of days left, you have to use the function WLTrialDaysLeft.