OpenDrv

Outline

Acquire device driver handle for communicating with device driver.

Supplement

It will be error when RAS/System monitor device driver is off.

VC++ .NET VC# .NET VB .NET


VC++ .NET

OpenDrv
Calling Method BOOL OpenDrv(void);
Return Value
TRUE : Normal
FALSE : Error
Argument None
Example int ret;
ret = OpenDrv();
Necessary Condition
Header iocif.h/iocifconst.h
Library ioctl.lib

Top of Page

VC# .NET

OpenDrv
Calling Method [DllImport("Ioctl.dll")] static extern int OpenDrv();
Return Value
Excluding 0 : Normal
0 : Error
Argument None
Example int ret;
ret = OpenDrv();

Top of Page

VB .NET

OpenDrv
Calling Method Declare Function OpenDrv Lib "Ioctl.dll" () As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument None
Example Dim ret As Integer
ret = OpenDrv()

Top of Page