PP_COMPNO32DRIVERS()

Install/Uninstall/Check if driver is loaded

CAUTION
This function is no longer supported. Developers are advised to use the Enhanced Computer ID Algorithms if possible.

 

Applies to:

Win32

Syntax-VB:

Declare Function pp_compno32drivers (ByVal drivername Long, ByVal flags as Long) As Long

Syntax-C:

LONG pp_compno32drivers(LONG drivername, LONG flag)

Arguments:

<drivername> is a bit field containing which driver you want to manipulate. As of right now there is only one driver:

COMPNO32_BIOS [0x0001] - Uses Machnm32.sys to get BIOS algorithm for Windws NT based operating Systems (Windows 2000, Windows XP,etc.)

<flags> gives you the ability to do the following:

  CHECK_DRIVER_STATUS [0]- Check to see if the driver is loaded.

INSTALL_DRIVER [1]- Installs the driver specified.

  UNINSTALL_DRIVER [2]- Uninstalls the driver specified.

Returns:

Refer to pp_errorstr() for a table of possible return codes and their meaning. Typically this will return PP_TRUE [1] if the operation was successful or true. For more information about the Machnm32.sys driver please view the Windows XP section in the FAQ.

Description:

The pp_compno32drivers() function is used to manipulate the 32-bit drivers for the Computer ID Number. This increases the compatibility to NT based platforms (Windows 2000, Windows XP, etc.). After installing the driver, you do not have to have Administrative Privilages to get the driver’s algorithm(s).

Example:

Dim result as Long

Dim buffer as String

buffer = Space$(20)

result = pp_compno32drivers(COMPNO32_BIOS,CHECK_DRIVER_STATUS);

If result <> PP_SUCCESS Then

 pp_errorstr(result, buffer)

 MsgBox "Error: " & result & " occurred." & Chr(13) & buffer

End If

See Also:

PP_COMPNO()

Related Topics