<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Trial Functions > WLTrialExtendExpiration |
The WLTrialExtendExpiration function allows extending the current trial period. To extend the trial period in an application, we recommend using Trial Extension keys (Generated by WinLicense). The WLTrialExtendExpiration function is suitable for those applications which cannot accept WinLicense trial extension keys by design.
bool WLTrialExtendExpiration( int NumDays, int NumExec, SYSTEMTIME* pExpDate, int Runtime, int GlobalTime );); |
function WLTrialExtendExpiration( NumDays: Integer; NumExec: Integer; var pExpDate: SYSTEMTIME; Runtime: Integer; GlobalTime: Integer ):Boolean; stdcall; |
Public Declare Function WLTrialExtendExpiration Lib "WinLicenseSDK.dll" ( ByVal NumDays As Integer, ByVal NumExec As Integer, pExpDate As Any, ByVal Runtime As Integer, ByVal GlobalTime As Integer ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLTrialExtendExpiration(int NumDays, int NumExec, SystemTime ExpDate, int Runtime, int GlobalTime);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLTrialExtendExpiration(NumDays As Integer, NumExec As Integer, ExpDate As SystemTime, Runtime As Integer, GlobalTime As Integer) As Boolean End Function |
Parameters
NumDays
This parameter specifies the number of days to extend the trial.
NumExec
This parameter specifies the number of executions to extend the trial.
pExpDate
This parameter specifies a pointer to a SYSTEMTIME structure with the new expiration date.
Runtime
This parameter specifies the new runtime expiration to extend in trial mode.
GlobalTime
This parameter specifies the number of minutes to extend the usage of the protected application in trial mode.
Return Values
If the function succeeds, the return value is true.
If the function fails, the return value is false.