PP_COMPNO()
Return the machine identifying Computer ID Number
Applies to:
Win32, Win64
Syntax-VB:
Declare Function pp_compno(ByVal type As Long, ByVal filename As String, ByVal hard_drive As String) As Long
Syntax-C:
LONG pp_compno(LONG type, LPSTR filename, LPSTR hard_drive)
Arguments:
<type>
COMPNO_ENHANCED [65536] Uses the Enhanced Computer ID Algorithms
COMPNO_NO_WMI [262144] - used in conjunction with the COMPNO_ENHANCED flag when protecting a DLL to suppress WMI data, which causes the application to hang. Note, when using this flag it must also be in any call to pp_copyadd(), pp_copycheck() or pp_copycheckth().
<filename> Unused. Set to a null string.
<hard_drive> Unused. Set to a null string.
Returns:
A single 32-bit computer ID number generated from the computer's current hardware.
Description:
The pp_compno() function is used to produce a computer "number" or ID. This number is a way of identifying a particular machine for use with manual and online activations when generating trigger codes. The PLUS system uses the Protection PLUS Enhanced Computer ID Algorithms to create a single number from the computer's hardware.
Refer to the Computer ID Number topic for an operating system compatibility matrix.
Example:
Dim compno As Long
compno = pp_compno(COMPNO_ENHANCED, "", "")
See Also:
PP_COPYADD(), PP_COPYCHECK(), and PP_TCODE()