InstallDriver function (Installer DLL)
Overview
Installs the driver into the system
Declaration
BOOL __stdcall InstallDriverA(
const char* BinaryPathName32,
const char* BinaryPathName64,
const char* ProductName,
BOOL *RebootNeeded);
BOOL __stdcall InstallDriverW(
const unsigned short* BinaryPathName32,
const unsigned short* BinaryPathName64,
const unsigned short* ProductName,
BOOL *RebootNeeded);
Parameters
- BinaryPathName32 - the fully qualified file name of the 32-bit driver (cbfs.sys) for installing on 32-bit systems
- BinaryPathName64 - the fully qualified file name of the 64-bit driver (cbfs.sys) for installing on 64-bit systems
- ProductName - the string that identifies installation of the driver by your application
- RebootNeeded - On return this parameter specifies if system restart is necessary for driver installation to be successful
Return values
TRUE / true if the function succeeded or FALSE / false if the function failed.
Description
Use this function to install the driver to the system. Once installed, the driver is loaded using user-mode API. ProductName is used to distinguish between installations of the driver made by different applications and to prevent the situation when the driver is installed by two applications and further deinstallation of one of them removes the driver.
Read more about installing and uninstalling the drivers.
Install the correct drivers:
On 64-bit systems you must install 64-bit drivers. 32-bit drivers won't work there.
The installer DLL automatically determines if the system is 32-bit or 64-bit, but you need to have a 64-bit driver ready for installation.
