Open topic with navigation
WR_TrialDaysLeft
This function retrieves the number of days remaining in daysleft if the application is operating with a trial or periodic license. If "Days to run" is set to Unlimited then daysleft will be set to '-1' if the application is operating with a trial license.
Syntax
- Visual Basic
- Declare Function WR_TrialDaysLeft(ByVal flags As Long,
ByRef daysleft As Long)
As Long
- C/C++
- LONG WR_TrialDaysLeft(LONG flags, LPLONG daysleft);
Arguments
- flags
- Reserved. Set to 0
- daysleft
- Variable in which the number of days remaining in the trial or periodic license will be stored.
Returns
- -300
- The application's license could not be verified as a trial or periodic license, or its expiration date is not valid.
- -2
- The application has not been wrapped.
- -1
- The API is not available. Please check your wizard settings. See the Testing section in the API Setup topic for more information.
- 1
- The the number of days left in the application's trial or periodic license was successfully stored in daysleft.