<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialExpirationTimestamp |
The WLTrialExpirationTimestamp function gets the exact expiration timestamp when an application is protected with trial days expiration. This function can be called when an application has been protected with trial days expiration to know the exact date and time that the trial will expire.
bool WLTrialExpirationTimestamp( FILETIME* pFileTime ); |
function WLTrialExpirationTimestamp( var pFileTime:FILETIME ):Boolean; stdcall; |
Public Declare Function WLTrialExpirationTimestamp Lib "WinLicenseSDK.dll" ( pExpDate As Any ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLTrialExpirationTimestamp(ref System.Runtime.InteropServices.ComTypes.FILETIME ExpDate);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialExpirationTimestamp(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 protected with trial days expiration, the return value is False.
Remarks
This function only works when the application is protected with trial days expiration. In other cases, it will always return False.