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

RawDisk.InstallDriver method


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

RawDisk     See also    


Installs the driver into the system


    class procedure InstallDriver( DriverName : WideString; ProgramName : WideString; var RebootNeeded : boolean);

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

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

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

    static void InstallDriver( string DriverName, string ProgramName, ref bool RebootNeeded)

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


  • DriverName - the fully qualified name of the device driver (elrawdisk.sys).
  • 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 installation to be successful.


Use this function to install the driver to the system. Once installed, the driver is loaded during system startup.

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     UninstallDriver    

Back to top