PP_COUNTDEC()

Decrements a number variable stored in License File

Applies to:

Win32, Win64

Syntax-VB:

Declare Function pp_countdec(ByVal handle As Long, ByVal var_no As Long) As Long

Syntax-C:

LONG pp_countdec(LONG handle, LONG var_no)

Arguments:

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

<var_no> is the variable number inside the License File to be decremented

Returns:

Refer to pp_errorstr() for a table of possible return codes and their meaning. Typically, PP_SUCCESS [1] (value was decremented) is returned.

Description:

Decrements a numeric value stored in the License File. There are several different numeric values in the License File. The variable numbers are listed in the function description for pp_getvarnum().

Typically, this function is used to decrement the number of active workstations or current number of licensed workstations.

This function will not allow the counter to go below zero.

Example:

Refer to the pp_countinc()example.

See Also:

PP_COUNTINC() and PP_GETVARNUM()

Related Topics