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
)
Public Shared Function SendSrbIoControl (
adapter As SafeFileHandle,
ctrlcode As UInteger,
timeout As UInteger,
databytes As Byte(),
ByRef returncode As Integer
) As Byte()
public:
static array<unsigned char>^ SendSrbIoControl(
SafeFileHandle^ adapter,
unsigned int ctrlcode,
unsigned int timeout,
array<unsigned char>^ databytes,
int% returncode
)
static member SendSrbIoControl :
adapter : SafeFileHandle *
ctrlcode : uint32 *
timeout : uint32 *
databytes : byte[] *
returncode : int byref -> byte[]
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:
ByteThis method returns a BinaryReader object that can be used to read and parse data returned after the
SRB_IO_CONTROL header.
See Also