Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( FSCTL_LOCK_VOLUME = uint32(0x90018) FSCTL_DISMOUNT_VOLUME = uint32(0x90020) IOCTL_STORAGE_MEDIA_REMOVAL = uint32(0x2d4804) IOCTL_STORAGE_EJECT_MEDIA = uint32(0x2d4808) )
View Source
const IOCTL_SCSI_PASS_THROUGH_DIRECT = 0x4D014
View Source
const MAX_SENSE_LEN = 18
View Source
const SCSI_IOCTL_DATA_IN = 1 // Get data from SCSI device (e.g. for reading)
View Source
const SCSI_IOCTL_DATA_OUT = 0 // Give data to SCSI device (e.g. for writing)
View Source
const SCSI_IOCTL_DATA_UNSPECIFIED = 2 // No data (e.g. for ejecting)
Variables ¶
This section is empty.
Functions ¶
func DriveStatus ¶
func EjectVolume ¶
EjectVolume Eject the tray of the drive with timeout
func GetDriveType ¶
func GetTickCount ¶
func GetTickCount() (tick uint32)
Types ¶
type SCSI_PASS_THROUGH_DIRECT_AND_SENSE_BUFFER ¶
type SCSI_PASS_THROUGH_DIRECT_AND_SENSE_BUFFER struct { SenseBuf [MAX_SENSE_LEN]byte // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.