sgio.SCSIDevice

Undocumented in source.

Members

Aliases

Handle
alias Handle = int
Undocumented in source.
Handle
alias Handle = HANDLE
Undocumented in source.

Classes

FakeSCSIDevice
class FakeSCSIDevice

This is a simple class used to simulate the communication with a device by using known buffers. Pass this device to a SCSICommand, and during the sgio_execute() it sets the response buffers with the data instead of executing a real ioctl.

SCSIDevice
class SCSIDevice
Undocumented in source.
SCSIDeviceBS
class SCSIDeviceBS

Class to hold the device handle, block size, and total blocks in a single place. This sends a ReadCapacity(10) command to the device to collect the values; to avoid sending the command, override the defaults in the constructor.

Functions

DeviceIoControl
BOOL DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
GetLastError
DWORD GetLastError()
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.

Structs

SCSI_PASS_THROUGH_DIRECT
struct SCSI_PASS_THROUGH_DIRECT
Undocumented in source.

Variables

IOCTL_SCSI_PASS_THROUGH
uint IOCTL_SCSI_PASS_THROUGH;
Undocumented in source.
IOCTL_SCSI_PASS_THROUGH_DIRECT
uint IOCTL_SCSI_PASS_THROUGH_DIRECT;
Undocumented in source.
SCSI_IOCTL_DATA_IN
uint SCSI_IOCTL_DATA_IN;
Undocumented in source.
SCSI_IOCTL_DATA_OUT
uint SCSI_IOCTL_DATA_OUT;
Undocumented in source.
SCSI_IOCTL_DATA_UNSPECIFIED
int SCSI_IOCTL_DATA_UNSPECIFIED;
Undocumented in source.
SG_INFO_OK
ubyte SG_INFO_OK;
Undocumented in source.

Meta