NativeFileIODeviceIoControl Method |
Sends an IOCTL control request to a device driver, or an FSCTL control request to a filesystem driver.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static byte[] DeviceIoControl(
SafeFileHandle device,
uint ctrlcode,
byte[] data,
ref uint outdatasize
)
Public Shared Function DeviceIoControl (
device As SafeFileHandle,
ctrlcode As UInteger,
data As Byte(),
ByRef outdatasize As UInteger
) As Byte()
public:
static array<unsigned char>^ DeviceIoControl(
SafeFileHandle^ device,
unsigned int ctrlcode,
array<unsigned char>^ data,
unsigned int% outdatasize
)
static member DeviceIoControl :
device : SafeFileHandle *
ctrlcode : uint32 *
data : byte[] *
outdatasize : uint32 byref -> byte[]
Parameters
- device
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Open handle to filer or device. - ctrlcode
- Type: SystemUInt32
IOCTL or FSCTL control code. - data
- Type: SystemByte
Optional function to create input data for the control function. - outdatasize
- Type: SystemUInt32
Number of bytes returned in output buffer by driver.
Return Value
Type:
ByteThis method returns a BinaryReader object that can be used to read and parse data returned by
driver in the output buffer.
See Also