WLTrialExtendExpiration

<< 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.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow Visual Basic Native function definition
Click to expand/collapseShow .NET function definition

 

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.