Click or drag to resize

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
)

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: Byte
This method returns a BinaryReader object that can be used to read and parse data returned by driver in the output buffer.
See Also