Share via


Block Driver IOCTLs (Compact 2013)

3/26/2014

The following table shows the Block driver IOCTLs with a description of the purpose of each.

Programming element

Description

IOCTL_CDROM_DISC_INFO

This IOCTL retrieves disc information to fill the CDROM_DISCINFO structure.

IOCTL_CDROM_EJECT_MEDIA

The IOCTL ejects the CD-ROM.

IOCTL_CDROM_GET_SENSE_DATA

This IOCTL specifies retrieval of a CD-ROM sense information contained in a CD_SENSE_DATA structure.

IOCTL_CDROM_ISSUE_INQUIRY

This IOCTL retrieves information used in the INQUIRY_DATA structure.

IOCTL_CDROM_PAUSE_AUDIO

This IOCTL suspends audio play.

IOCTL_CDROM_PLAY_AUDIO_MSF

This IOCTL plays audio from the specified range of the medium.

IOCTL_CDROM_READ_SG

This IOCTL reads scatter buffers from the CD-ROM and the information is stored in the CDROM_READ structure.

IOCTL_CDROM_READ_TOC

This IOCTL returns the table of contents of the medium.

IOCTL_CDROM_RESUME_AUDIO

This IOCTL resumes a suspended audio operation.

IOCTL_CDROM_SEEK_AUDIO_MSF

This IOCTL moves the heads to the specified minutes, seconds, and frames on the medium.

IOCTL_CDROM_STOP_AUDIO

This IOCTL stops audio play.

IOCTL_CDROM_TEST_UNIT_READY

This IOCTL retrieves disc ready information and fills the CDROM_TESTUNITREADY structure.

IOCTL_DISK_DEVICE_INFO

This IOCTL returns storage information to block device drivers.

IOCTL_DISK_FLUSH_CACHE

This IOCTL is issued by the FAT file system when a storage device has an associated hardware cache, and the device driver reports that the cache needs to be flushed for transfers.

IOCTL_DISK_FORMAT_MEDIA

This IOCTL is issued by the FAT file system when a device driver reports that the disk needs a low-level format.

IOCTL_DISK_GET_SECTOR_ADDR

This IOCTL receives an array of logical sectors and returns an array of addresses. Each array of addresses corresponds to the statically mapped virtual address for a particular logical sector.

IOCTL_DISK_GET_STORAGEID

This IOCTL returns the current STORAGE_IDENTIFICATION structure for a particular storage device.

IOCTL_DISK_GETINFO

This IOCTL notifies block device drivers to return disk information.

IOCTL_DISK_GETNAME

This IOCTL services the request from the FAT file system for the name of the folder that determines how users access the block device.

IOCTL_DISK_READ

This IOCTL services FAT file system requests to read data from the block device.

IOCTL_DISK_SECURE_WIPE

This IOCTL specifies a secure removal of all specified sectors.

IOCTL_DISK_SET_SECURE_WIPE_FLAG

This IOCTL sets a flag indicating a secure wipe is to be performed.

IOCTL_DISK_SETINFO

This IOCTL services FAT file system requests to set disk information.

IOCTL_DISK_WRITE

This IOCTL services FAT file system requests to write data to the block device.

IOCTL_DVD_GET_REGION

This IOCTL returns DVD disk and drive regions.

See Also

Reference

Block Driver Reference