Install/Uninstall/Check if driver is loaded
Declare Function pp_compno32drivers (ByVal drivername Long, ByVal flags as Long) As Long
LONG pp_compno32drivers(LONG drivername, LONG flag)
<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 - Check to see if the driver is loaded.
INSTALL_DRIVER - Installs the driver specified.
UNINSTALL_DRIVER - Uninstalls the driver specified.
Refer to pp_errorstr() for a table of possible return codes and their meaning. Typically this will return PP_TRUE  if the operation was successful or true. For more information about the Machnm32.sys driver please view the Windows XP section in the FAQ.
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).
Dim result as Long
Dim buffer as String
buffer = Space$(20)
result = pp_compno32drivers(COMPNO32_BIOS,CHECK_DRIVER_STATUS);
If result <> PP_SUCCESS Then
MsgBox "Error: " & result & " occurred." & Chr(13) & buffer