InstallDriverEx function (Installer DLL)
Installs the driver into the system
BOOL __stdcall InstallDriverExA(
const char* BinaryPathName32,
const char* BinaryPathName64,
const char* ProgramName,
unsigned long Altitude,
BOOL __stdcall InstallDriverExW( const unsigned short* BinaryPathName32, const unsigned short* BinaryPathName64, const unsigned short* ProgramName, CbFltFilterMode Mode, unsigned long Altitude, BOOL *RebootNeeded);
- 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
- ProgramName - the string that identifies installation of the driver by your application
- Mode - specifies in which mode (legacy or minifilter) the driver will work
- Altitude - specifies the Altitude of the driver in mini-filter mode
- RebootNeeded - On return this parameter specifies if system restart is necessary for driver installation to be successful
TRUE / true if the function succeeded or FALSE / false if the function failed.
Values of CbFltFilterMode
Use this function to install the driver to the system in legacy or minifilter mode. 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.
You can change the driver mode from legacy to minifilter and vice versa using FilterMode property. Read more about Legacy and MiniFilter modes.
Read more about Mini-filter driver altitudes.
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.