WLTrialDaysLeft

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Trial Functions >

WLTrialDaysLeft

The WLTrialDaysLeft function retrieves the number of trial days left before expiring.

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

 

This function has no parameters.

 

 

Return Values

 

The return value is the number of  trial days left before expiring.

 

If the trial has been manipulated by a user or the function is called without adding the Days Expiration option to the protected application, the return value is -1.

 

 

Remarks

 

Before calling WLTrialDaysLeft, you should call the function WLTrialGetStatus, to know the status of the trial (expired, manipulated, etc).

 

Please, notice that this function returns the number of days left when you enable the trial Days Expiration option. If you are protecting your application with Date Expiration and you want to know the number of days left, you have to use the function WLTrialDateDaysLeft.

 

 

See Also

 

WLTrialTotalDays