<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialExpirationDate |
The WLTrialExpirationDate function retrieves the trial expiration date in an application.
int WLTrialExpirationDate( SYSTEMTIME* pExpDate ); |
function WLTrialExpirationDate( var pExpDate:SYSTEMTIME ):Integer; stdcall; |
Public Declare Function WLTrialExpirationDate Lib "WinLicenseSDK.dll" ( pExpDate As Any ) As Integer |
[C#] Kernel32.GetEnvironmentVariable("WLTrialExpirationDate", [out] ExpirationDate, 100);
[Visual Basic] GetEnvironmentVariable("WLTrialExpirationDate", [out] ExpirationDate, 100) |
Parameters
pExpDate
[out] Pointer to a SYSTEMTIME structure that receives the trial expiration date.
Return Values
If the function success the return value is zero.
If the current application does not have trial expiration date, the return value is wlNoTrialDate (-1).
Remarks
Before calling WLTrialExpirationDate, you should call the function WLTrialGetStatus, to know the status of the trial (expired, manipulated, etc).