Direct access to disks and protected files from user-mode applications in Windows

RawDisk.UninstallDriver method


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

RawDisk     See also    


Uninstalls the driver from the system


    class procedure UninstallDriver( ProgramName : WideString; var RebootNeeded : boolean);

[C++ (DLL/Lib)]
    static void UninstallDriver( const unsigned short * ProgramName, bool *RebootNeeded);

[C++ (VCL)]
    static void __fastcall UninstallDriver( const unsigned short * ProgramName, bool RebootNeeded);

[C++ (.NET)]
    static void UninstallDriver( String* ProgramName, bool &RebootNeeded);

    static void UninstallDriver( string ProgramName, ref bool RebootNeeded)

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


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

See Driver installation and deinstallation topic for additional details about installing the driver.

If the method fails for whatever reason, an exception with Windows-defined error code is thrown.

See also

GetDriverStatus     InstallDriver    

Back to top