<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegExpirationTimestamp |
The WLRegExpirationTimestamp function gets the exact expiration timestamp for a license key with days expiration. This function can be called when a license with days expiration is present to know the exact date and time that the license will expire.
bool WLRegExpirationTimestamp( FILETIME* pFileTime ); |
function WLRegExpirationTimestamp( var pFileTime:FILETIME ):Boolean; stdcall; |
Public Declare Function WLRegExpirationTimestamp Lib "WinLicenseSDK.dll" ( pExpDate As Any ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegExpirationTimestamp(ref System.Runtime.InteropServices.ComTypes.FILETIME ExpDate);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegExpirationTimestamp(ByRef ExpDate As System.Runtime.InteropServices.ComTypes.FILETIME) As Boolean End Function |
Parameters
pFileTime
[out] Pointer to a FILETIME structure that receives the expiration timestamp.
Return Values
If the function success the return value is True.
If the current application is not registered with a license with expiration days, the return value is False.
Remarks
This function only works with licenses with expiration days. In other cases, it will always return False.