<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegDaysLeft |
The WLRegDaysLeft function retrieves the number of days left in the current license key.
int WLRegDaysLeft(void); |
function WLRegDaysLeft():Integer; stdcall; |
Public Declare Function WLRegDaysLeft Lib "WinLicenseSDK.dll" () As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLRegDaysLeft();
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegDaysLeft() As Integer End Function |
Parameters
This function has no parameters.
Return Values
The return value is the number of days left in the current license key.
If the license key is a permanent key the return value is wlPermKey (-1).
If a license key has not been installed, the return value is wlNoKey (-2).
See Also