PP_GETVARNUM()

Gets a numeric-type License File variable

Applies to:

Win32, Win64

Syntax-VB:

Declare Function pp_getvarnum(ByVal handle As Long, ByVal var_no As Long, ByRef value As Long) As Long

Syntax-C:

LONG pp_getvarnum(PPLFHANDLE handle, LONG var_no, LPLONG value)

Arguments:

<handle> is the handle to the License File given by pp_lfopen()

<var_no> determines which variable is being retrieved

<value> is the location in which to place the variable data

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

Description:

Use this function to obtain the values of the numeric variables stored in the License File. The function pp_lfopen() opens the License File and returns a handle. Then, pp_getvarnum() is used to retrieve the numeric values one by one.

 

NAME

VAR#

DEFINE

Product serial number (numeric)

1

VAR_SERIAL_NUM

Expiration count

2

VAR_EXP_COUNT

Expiration limit

3

VAR_EXP_LIMIT

Number of current users

4

VAR_LAN_COUNT

Number of allowed users

5

VAR_LAN_LIMIT

Number of used installations

6

VAR_INSTALL_COUNT

Number of allowed installations

7

VAR_INSTALL_LIMIT

Number of computer IDs authorized

8

VAR_AUTHORIZED_COMPS

User-defined numeric/bit field 1

9

VAR_UDEF_NUM_1

User-defined numeric/bit field 2

10

VAR_UDEF_NUM_2

User-defined numeric/bit field 3

11

VAR_UDEF_NUM_3

User-defined numeric/bit field 4

12

VAR_UDEF_NUM_4

User-defined numeric/bit field 5

13

VAR_UDEF_NUM_5

License File Checksum

14

VAR_LF_CHECKSUM

Software binding flag

15

VAR_EZTRIAL_SOFT_BINDING

Hardware binding flag

16

VAR_EZTRIAL_HARD_BINDING

Hardware binding threshold

17

VAR_EZTRIAL_COMPNO_THRESHOLD

Convert copies to demo flag

18

VAR_EZTRIAL_CONVERT_COPIES

Update last used time flag

19

VAR_EZTRIAL_UPDATE_LAST_TIME

Hardware binding algorithm(s)

20

VAR_EZTRIAL_COMPNO_ALGORITHMS

EZ Trial file version

21

VAR_EZTRIAL_FILE_VERSION

EZ Trigger flags

22

VAR_EZTRIG_FLAGS

EZ Trigger binding algorithm(s)

23

VAR_EZTRIG_COMPNO_ALGORITHMS

EZ Trigger seed

24

VAR_EZTRIG_SEED

EZ Trigger additional # seed

25

VAR_EZTRIG_REGKEY2SEED

EZ Trial days to run

26

VAR_EZTRIAL_DAYS_TO_RUN

EZ Trial number of executions

27

VAR_EZTRIAL_TIMES_TO_RUN

AutoCL LicenseID

28

VAR_LICENSEID

AutoCL CustomerID

29

VAR_CUSTOMERID

 

The value from VAR_LF_CHECKSUM will not be the same as when using pp_password() on a License File.

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_GETVARDATE(), and PP_SETVARNUM()

Concept Link IconRelated Topics