PP_GETVARDATE()
Gets a date type License File variable
Applies to:
Win32, Win64
Syntax-VB:
Declare Function pp_getvardate(ByVal handle As Long, ByVal var_no As Long, ByRef month_hours As Long, ByRef day_minutes As Long, ByRef year_secs As Long) As Long
Syntax-C:
LONG pp_getvardate(LONG handle, LONG var_no, LPLONG month_hours, LPLONG day_minutes, LPLONG year_secs )
Arguments:
<handle> is the handle to the License File given pp_lfopen()
<var_no> determines which variable is being retrieved
<month_hours> returns the month or hours of the variable
<day_minutes> returns the day or minutes of the variable
<year_secs> returns the year or seconds of the variable
Returns:
Refer to pp_errorstr() for a table of possible return codes and their meaning. Typically, PP_SUCCESS [1] is returned and the value of the variable is returned through the parameters <month_hours>, <day_minutes>, and <year_secs>.
Description:
Use this function to obtain the values of the date and time variables stored in the License File. The function pp_lfopen() opens the License File and returns a handle. Then, pp_getvardate() is used to retrieve the date and time values one by one.
|
NAME |
SIZE |
VAR # |
DEFINE |
|
Expiration date (soft) |
3 LONGs |
1 |
VAR_EXP_DATE_SOFT |
|
Expiration date (hard) |
3 LONGs |
2 |
VAR_EXP_DATE_HARD |
|
Last used date |
3 LONGs |
3 |
VAR_LAST_DATE |
|
Last used time |
3 LONGs |
4 |
VAR_LAST_TIME |
|
User-defined date field 1 |
3 LONGs |
5 |
VAR_UDEF_DATE_1 |
|
User-defined date field 2 |
3 LONGs |
6 |
VAR_UDEF_DATE_2 |
|
User-defined date field 3 |
3 LONGs |
7 |
VAR_UDEF_DATE_3 |
|
User-defined date field 4 |
3 LONGs |
8 |
VAR_UDEF_DATE_4 |
|
User-defined date field 5 |
3 LONGs |
9 |
VAR_UDEF_DATE_5 |
|
Last used date in UTC format |
3 LONGs |
10 |
VAR_LAST_DATE_UTC |
|
Last used time in UTC format |
3 LONGs |
11 |
VAR_LAST_TIME_UTC |
Example:
Refer to pp_getvarchar() for an example of the concept of getting variables from the License File.
See Also:
PP_LFOPEN(), PP_GETVARCHAR(), PP_GETVARNUM(), and PP_SETVARDATE()