RawDisk.InstallDriver method
Filter:
Pascal C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Installs the driver into the system
Declaration
[Pascal]
class function InstallDriver(
DriverName : WideString;
ProgramName : AnsiString;
var RebootNeeded : boolean) : BOOL;
[C++ (DLL/Lib)]
static BOOL InstallDriver(
unsigned short* DriverName,
const char * ProgramName,
bool *RebootNeeded);
[C++ (VCL)]
static BOOL __fastcall InstallDriver(
WideString DriverName,
const char * ProgramName,
bool RebootNeeded);
[C++ (.NET)]
static BOOL InstallDriver(
String* DriverName,
String* ProgramName,
bool &RebootNeeded);
[C#]
static BOOL InstallDriver(
string DriverName,
string ProgramName,
ref bool RebootNeeded)
[VB.NET]
Shared Function InstallDriver(
ByVal DriverName As String,
ByVal ProgramName As String,
ByRef RebootNeeded As Boolean) as BOOL
Parameters
- 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.
Return values
TRUE (non-zero value) if the function succeeded or FALSE (0) if the function failed. When 0 is returned, use GetLastError() WinAPI function to get the return code.
Description
Use this function to install the driver to the system. Once installed, the driver is loaded during system startup.
