PP_COPYGET()

Gets the Computer ID from the given slot, if filled

Applies to:

Win32, Win64

Syntax-VB:

Declare Function pp_copyget(ByVal handle As Long, ByVal slot As Long, ByRef comp_num As Long) As Long

Syntax-C:

LONG pp_copyget(PPLFHANDLE handle, LONG slot, LPLONG comp_num)

Arguments:

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

<slot> set to COPYGET_ENHANCED [-1] to use the Enhanced Computer ID Algorithms

<comp_num> is the location to place the variable data

Returns:

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

Description:

Retrieves the Computer ID stored in the license file as a single LONG (32-bit) value. The algorithms used to retrieve this number are the same algorithms used in the pp_compno() function.

Example:

Dim result As Long, compno As Long

 

' Delete the computer at slot 2

result = pp_copyget(lfhandle, -1, compno)

If result = 20 Then

' ERROR: result = ERR_SLOT_EMPTY

End If

 

See Also:

PP_LFOPEN(), PP_COPYADD(), PP_COPYDELETE(), and PP_COPYCHECK()

Concept Link IconRelated Topics