Send comments on this topic
UninstallDriver function (Installer DLL)
Overview
Uninstalls the driver from the system
Declaration
BOOL __stdcall UninstallDriverA(
const char * ProductName,
bool *RebootNeeded);
BOOL __stdcall UninstallDriverW(
const unsigned short* ProductName,
bool *RebootNeeded);
Parameters
- ProductName - the ProductName string that identifies installation of the driver by your application
- RebootNeeded - On return this parameter specifies if system restart is necessary for driver deinstallation to be successful.
Return values
TRUE / true if the function succeeded or FALSE / false if the function failed.
Description
Use this function to uninstall the driver from the system. 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.
