Open topic with navigation
Gets the Computer ID from the given slot, if filled
Declare Function pp_copyget(ByVal handle As Long, ByVal slot As Long, ByRef comp_num As Long) As Long
LONG pp_copyget(PPLFHANDLE handle, LONG slot, LPLONG comp_num)
<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
Refer to pp_errorstr() for a table of possible return codes and their meaning. Typically, PP_SUCCESS  (ID was retrieved) is returned.
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.
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
PP_LFOPEN(), PP_COPYADD(), PP_COPYDELETE(), and PP_COPYCHECK()