Disk Management Control Codes
The following table identifies the control codes that are used in disk management.
In this section
| Control Code | Description |
|---|---|
|
Waits for all volumes on the specified disk to be ready for use. | |
|
Initializes the specified disk and disk partition table using the information in the CREATE_DISK structure. | |
|
Removes the boot signature from the master boot record, so that the disk will be formatted from sector zero to the end of the disk. | |
|
Formats a specified, contiguous set of tracks on a floppy disk. To provide additional parameters, use IOCTL_DISK_FORMAT_TRACKS_EX instead. | |
|
Formats a specified, contiguous set of tracks on a floppy disk. | |
|
Retrieves the disk cache configuration data. | |
|
Retrieves the attributes of the specified disk device. | |
|
Retrieves information about the physical disk's geometry: type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector. | |
|
Retrieves extended information about the physical disk's geometry: type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector. | |
|
Retrieves information for each entry in the partition tables for a disk. | |
|
Retrieves extended information for each entry in the partition tables for a disk. | |
|
Retrieves the length of the specified disk, volume, or partition. | |
|
Retrieves information about the type, size, and nature of a disk partition. | |
|
Retrieves extended information about the type, size, and nature of a disk partition. | |
|
Enlarges the specified partition. | |
|
Determines whether the specified disk is writable. | |
|
Enables performance counters that provide disk performance information. | |
|
Disables the performance counters that provide disk performance information. | |
|
Directs the disk device to map one or more blocks to its spare-block pool. | |
|
Directs the disk device to map one or more blocks to its spare-block pool. | |
|
Clears all Volume Shadow Copy Service (VSS) hardware-based shadow copy (also called "snapshot") information from the disk. To perform this operation, call the DeviceIoControl function with the following parameters. | |
|
Sets the disk configuration data. | |
|
Sets the attributes of the specified disk device. | |
|
Partitions a disk as specified by drive layout and partition information data. | |
|
Partitions a disk according to the specified drive layout and partition information data. | |
|
Sets partition information for the specified disk partition. | |
|
Sets partition information for the specified disk partition, including layout information for AT and EFI (Extensible Firmware Interface) partitions. | |
|
Invalidates the cached partition table and re-enumerates the device. | |
|
Verifies the specified extent on a fixed disk. | |
|
Returns the properties of a storage device or adapter. The request indicates the kind of information to retrieve, such as the inquiry data for a device or the capabilities and limitations of an adapter. IOCTL_STORAGE_QUERY_PROPERTY can also be used to determine whether the port driver supports a particular property or which fields in the property descriptor can be modified with a subsequent change-property request. |
The following control codes are obsolete:
- IOCTL_DISK_CONTROLLER_NUMBER
- IOCTL_DISK_GET_DRIVE_GEOMETRY
- IOCTL_DISK_GET_DRIVE_LAYOUT
- IOCTL_DISK_GET_PARTITION_INFO
- IOCTL_DISK_HISTOGRAM_DATA
- IOCTL_DISK_HISTOGRAM_RESET
- IOCTL_DISK_HISTOGRAM_STRUCTURE
- IOCTL_DISK_LOGGING
- IOCTL_DISK_REQUEST_DATA
- IOCTL_DISK_REQUEST_STRUCTURE
- IOCTL_DISK_SET_DRIVE_LAYOUT
- IOCTL_DISK_SET_PARTITION_INFO
Send comments about this topic to Microsoft
Build date: 4/16/2013