Click or drag to resize

NativeFileIOPhDiskMntCtlSendSrbIoControl Method

Sends an IOCTL_SCSI_MINIPORT control request to a SCSI miniport.

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
public static byte[] SendSrbIoControl(
	SafeFileHandle adapter,
	uint ctrlcode,
	uint timeout,
	byte[] databytes,
	ref int returncode
)

Parameters

adapter
Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Open handle to SCSI adapter.
ctrlcode
Type: SystemUInt32
Control code to set in SRB_IO_CONTROL header.
timeout
Type: SystemUInt32
Timeout to set in SRB_IO_CONTROL header.
databytes
Type: SystemByte
Optional request data after SRB_IO_CONTROL header. The Length field in SRB_IO_CONTROL header will be automatically adjusted to reflect the amount of data passed by this function.
returncode
Type: SystemInt32
ReturnCode value from SRB_IO_CONTROL header upon return.

Return Value

Type: Byte
This method returns a BinaryReader object that can be used to read and parse data returned after the SRB_IO_CONTROL header.
See Also