Instant control over file and folder operations in Windows and .NET applications

CallbackFilter.UninstallDriver method


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackFilter     See also    


Uninstalls the driver from the system


    class procedure UninstallDriver(ProductName : AnsiString; var RebootNeeded : boolean);

[C++ (Lib)]
    static void UninstallDriver(LPCSTR ProductName, LPBOOL RebootNeeded);

[C++ (VCL)]
    static void __fastcall UninstallDriver(__classid(TCallbackFilter), AnsiString ProductName, bool &RebootNeeded);

[C++ (.NET)]
    static void UninstallDriver(String^ ProductName, bool% RebootNeeded);

    static void UninstallDriver(string ProductName, ref bool RebootNeeded)

    Shared Sub UninstallDriver(ByVal ProductName As String, ByRef RebootNeeded As Boolean)


  • 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.


Use this method 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.

This method does not remove CallbackFilter of other major versions than the one to which it belongs. You need to use cbfltinst.dll installer DLL, shipped with CallbackFilter 2.x, to uninstall previous version, if you are upgrading your application from the version which used CallbackFilter 2 to the version which uses CallbackFilter 3.

See also

GetDriverStatus     InstallDriver    

Back to top