WR_LFSetDate

This function is used to change the date and time values of the variables stored in the license file. You may use any of the User Defined fields to store your own data freely.

Syntax

Visual Basic
Declare Function WR_LFSetDate(ByVal flags As Long, ByVal var_no As Long, ByVal month_hours As Long, ByVal day_minutes As Long, ByVal year_seconds As Long) As Long
C/C++:
LONG WR_LFSetDate(LONG flags, LONG var_no, LONG month_hours, LONG day_minutes, LONG year_seconds);

Arguments

flags
Reserved. Set to 0
var_no
Determines field for which the new value will be applied. See the available fields table below.
month_hours
The new month or hour to apply to the field in the license file.
day_minutes
The new day or minute to apply to the field in the license file
year_secs
The new year or second to apply to the field in the license file.

Returns

If the call fails, any of the API Error Codes may be returned.

-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 new date or time was successfully stored in license file field.

Available Fields

Field ID Description
1 Trial/Periodic Expiration Date
2 Hard Expiration Date
3 Last Used Date
4 Last Used Time
5 Reserved
6 Next Date for Online Update Check
7 Next Date for Online Registration Check
8 Next Date for Online License Check
9 User-Defined
10 Last Used Date in UTC format
11 Last Used Time in UTC format