<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegExpirationDate |
The WLRegExpirationDate function retrieves the expiration date in a license key.
int WLRegExpirationDate( SYSTEMTIME* pExpDate ); |
function WLRegExpirationDate( var pExpDate:SYSTEMTIME ):Integer; stdcall; |
Public Declare Function WLRegExpirationDate Lib "WinLicenseSDK.dll" ( pExpDate As Any ) As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern int WLRegExpirationDate(SystemTime ExpDate);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegExpirationDate(ExpDate As SystemTime) As Integer End Function |
Parameters
pExpDate
[out] Pointer to a SYSTEMTIME structure that receives the license expiration date.
Return Values
If the function succeeds the return value is zero.
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).