ntdddisk.h header
This header is used by storage. For more information, see:
ntdddisk.h contains the following programming interfaces:
IOCTLs
IOCTL_DISK_CHECK_VERIFY The IOCTL_DISK_CHECK_VERIFY IOCTL is replaced by IOCTL_STORAGE_CHECK_VERIFY In Microsoft Windows 2000 and later operating systems. |
IOCTL_DISK_CONTROLLER_NUMBER Retrieves the controller number and disk number for an IDE disk. |
IOCTL_DISK_COPY_DATA This IOCTL_DISK_COPY_DATA IOCTL is used to copy data from one area of the disk to another. |
IOCTL_DISK_CREATE_DISK Creates an empty partition for the device object. |
IOCTL_DISK_DELETE_DRIVE_LAYOUT Removes partition information from the disk. |
IOCTL_DISK_FIND_NEW_DEVICES The IOCTL_DISK_FIND_NEW_DEVICES IOCTL is replaced by IOCTL_STORAGE_FIND_NEW_DEVICES In Microsoft Windows 2000 and later operating systems. |
IOCTL_DISK_FORMAT_TRACKS Formats the specified set of contiguous tracks on the disk. |
IOCTL_DISK_FORMAT_TRACKS_EX Is similar to IOCTL_DISK_FORMAT_TRACKS, except that it allows the caller to specify several more parameters. |
IOCTL_DISK_GET_CACHE_INFORMATION Returns disk cache configuration data. |
IOCTL_DISK_GET_DRIVE_GEOMETRY Returns information about the physical disk's geometry (media type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector). |
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX Returns information about the physical disk's geometry (media type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector).The difference between IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and the older IOCTL_DISK_GET_DRIVE_GEOMETRY request is that IOCTL_DISK_GET_DRIVE_GEOMETRY_EX can retrieve information from both Master Boot Record (MBR) and GUID Partition Table (GPT)-type partitioned media, whereas IOCTL_DISK_GET_DRIVE_GEOMETRY can only read MBR-style media. |
IOCTL_DISK_GET_DRIVE_LAYOUT The IOCTL_DISK_GET_DRIVE_LAYOUT IOCTL returns information about the number of partitions, disk signature, and features of each partition on a disk. |
IOCTL_DISK_GET_DRIVE_LAYOUT_EX The IOCTL_DISK_GET_DRIVE_LAYOUT_EX IOCTL returns information about the number of partitions, disk signature, and features of each partition on a disk. |
IOCTL_DISK_GET_LENGTH_INFO Returns the length, in bytes, of the disk, partition, or volume associated with the device object that is the target of the request. |
IOCTL_DISK_GET_MEDIA_TYPES In Microsoft Windows 2000 and later operating systems, this IOCTL is replaced by IOCTL_STORAGE_GET_MEDIA_TYPES. The only difference between the two IOCTLs is the base value. |
IOCTL_DISK_GET_PARTITION_INFO The IOCTL_DISK_GET_PARTITION_INFO IOCTL returns information about the type, size, and nature of a disk partition. |
IOCTL_DISK_GET_PARTITION_INFO_EX The IOCTL_DISK_GET_PARTITION_INFO_EX IOCTL returns information about the type, size, and nature of a disk partition. |
IOCTL_DISK_GROW_PARTITION Increases the size of an existing partition. |
IOCTL_DISK_INTERNAL_CLEAR_VERIFY Allows a driver to clear the verify bit on a disk device object, if the mode of the caller is kernel mode. |
IOCTL_DISK_INTERNAL_SET_VERIFY Allows a driver to set the verify bit on a disk device object if the mode of the caller is kernel mode. |
IOCTL_DISK_IS_CLUSTERED Allows a driver or application to determine if a disk is clustered. |
IOCTL_DISK_IS_WRITABLE Determines whether a disk is writable. |
IOCTL_DISK_PERFORMANCE Increments a reference counter that enables the collection of disk performance statistics, such as the numbers of bytes read and written since the driver last processed this request, for a corresponding disk monitoring application. |
IOCTL_DISK_PERFORMANCE_OFF Disables the counters that were enabled by previous calls to IOCTL_DISK_PERFORMANCE. This request is available in Windows XP and later operating systems. Caller must be running at IRQL = PASSIVE_LEVEL. |
IOCTL_DISK_REASSIGN_BLOCKS Maps defective blocks to new location on disk. This request instructs the device to reassign the bad block address to a good block from its spare-block pool. |
IOCTL_DISK_REASSIGN_BLOCKS_EX Maps defective blocks to a new location on disk. This request instructs the device to reassign the bad block address to a good block from its spare-block pool. |
IOCTL_DISK_RESET_SNAPSHOT_INFO Clears all volume shadow copy service (VSS) hardware-based snapshot information from the disk. |
IOCTL_DISK_SET_CACHE_INFORMATION Sets disk cache configuration data. |
IOCTL_DISK_SET_DRIVE_LAYOUT The IOCTL_DISK_SET_DRIVE_LAYOUT IOCTL specifies how to repartition a disk by using DRIVE_LAYOUT_INFORMATION values and other parameters. |
IOCTL_DISK_SET_DRIVE_LAYOUT_EX The IOCTL_DISK_SET_DRIVE_LAYOUT_EX IOCTL specifies how to repartition a disk by using DRIVE_LAYOUT_INFORMATION_EX values and other parameters. |
IOCTL_DISK_SET_PARTITION_INFO The IOCTL_DISK_SET_PARTITION_INFO IOCTL changes the partition type of the specified disk partition and returns the status of the operation. |
IOCTL_DISK_SET_PARTITION_INFO_EX The IOCTL_DISK_SET_PARTITION_INFO_EX IOCTL changes the partition type of the specified disk partition and returns the status of the operation. |
IOCTL_DISK_UPDATE_DRIVE_SIZE Updates device extension with drive size information for current media. |
IOCTL_DISK_VERIFY Performs verification for a specified extent on a disk. |
Structures
CREATE_DISK The CREATE_DISK structure is used with the IOCTL_DISK_CREATE_DISK IOCTL to initialize a disk with an empty partition table. The partition table styles are master boot record (MBR) or GUID partition table (GPT). |
CREATE_DISK_GPT The CREATE_DISK_GPT structure is used with the IOCTL IOCTL_DISK_CREATE_DISK to initialize a disk with an empty GPT partition table. |
CREATE_DISK_MBR The CREATE_DISK_MBR structure is used with the IOCTL IOCTL_DISK_CREATE_DISK to initialize a disk with an empty MBR partition table. |
DISK_CACHE_INFORMATION The DISK_CACHE_INFORMATION structure is used with the IOCTL_DISK_GET_CACHE_INFORMATION request to retrieve cache information. |
DISK_CONTROLLER_NUMBER DISK_CONTROLLER_NUMBER is used with IOCTL_DISK_CONTROLLER_NUMBER to retrieve the controller number and disk number of an IDE disk. |
DISK_COPY_DATA_PARAMETERS DISK_COPY_DATA_PARAMETERS is used with IOCTL_DISK_COPY_DATA to copy data from one area of the disk to another. |
DISK_DETECTION_INFO The DISK_DETECTION_INFO structure contains the detected drive parameters that are supplied by an x86 PC BIOS on boot. |
DISK_EX_INT13_INFO The DISK_EX_INT13_INFO structure is used by the BIOS to report disk detection data for a partition with an extended INT13 format. |
DISK_GEOMETRY The DISK_GEOMETRY structure is obsolete and provided only to support existing drivers. |
DISK_GEOMETRY_EX The DISK_GEOMETRY_EX structure is an arbitrary-length structure composed of a DISK_GEOMETRY structure followed by a DISK_PARTITION_INFO structure followed, in turn, by a DISK_DETECTION_INFO structure. |
DISK_GROW_PARTITION The DISK_GROW_PARTITION structure is used in conjunction with the IOCTL_DISK_GROW_PARTITION request to enlarge a partition. |
DISK_INT13_INFO The DISK_INT13_INFO structure is used by the BIOS to report disk detection data for a partition with an INT13 format. |
DISK_PARTITION_INFO The DISK_PARTITION_INFO structure is used to report information about the disk's partition table. |
DISK_PERFORMANCE Learn more about the DISK_PERFORMANCE structure. |
DRIVE_LAYOUT_INFORMATION The DRIVE_LAYOUT_INFORMATION structure is obsolete and is provided only to support existing drivers. |
DRIVE_LAYOUT_INFORMATION_EX The DRIVE_LAYOUT_INFORMATION_EX structure is used to report information about the driver layout. |
DRIVE_LAYOUT_INFORMATION_GPT The DRIVE_LAYOUT_INFORMATION_GPT structure reports the drive signature for a GUID Partition Table partition. |
DRIVE_LAYOUT_INFORMATION_MBR The DRIVE_LAYOUT_INFORMATION_MBR structure reports the drive signature for a Master Boot Record partition. |
DRIVERSTATUS The DRIVERSTATUS structure is used in conjunction with the SENDCMDOUTPARAMS structure and the SMART_SEND_DRIVE_COMMAND request to retrieve data returned by a Self-Monitoring Analysis and Reporting Technology (SMART) command. |
FORMAT_EX_PARAMETERS The FORMAT_EX_PARAMETERS structure is used in conjunction with the IOCTL_DISK_FORMAT_TRACKS_EX request to format the specified set of contiguous tracks on the disk. |
FORMAT_PARAMETERS The FORMAT_PARAMETERS structure is used in conjunction with the IOCTL_DISK_FORMAT_TRACKS request to format the specified set of contiguous tracks on the disk. |
GET_LENGTH_INFORMATION The GET_LENGTH_INFORMATION structure is used with the IOCTL_DISK_GET_LENGTH_INFO to obtain the length, in bytes, of a disk, partition, or volume. |
GETVERSIONINPARAMS The GETVERSIONINPARAMS structure is used in conjunction with the SMART_GET_VERSION request to retrieve version information, a capabilities mask, and a bitmask for the indicated device. |
IDEREGS The IDEREGS structure is used to report the contents of the IDE controller registers. |
PARTITION_INFORMATION The PARTITION_INFORMATION structure contains partition information for a partition with a traditional AT-style Master Boot Record (MBR). |
PARTITION_INFORMATION_EX PARTITION_INFORMATION_EX is the extended version of the PARTITION_INFORMATION structure. It holds information both for partitions with a Master Boot Record and for partitions with a GUID Partition Table. |
PARTITION_INFORMATION_GPT PARTITION_INFORMATION_GPT contains information for a GUID Partition Table partition that is not held in common with a Master Boot Record partition. |
PARTITION_INFORMATION_MBR PARTITION_INFORMATION_MBR contains information for a Master Boot Record partition that is not held in common with a GUID Partition Table partition. |
REASSIGN_BLOCKS The REASSIGN_BLOCKS structure is used in conjunction with the IOCTL_DISK_REASSIGN_BLOCKS request to instruct a disk device to reassign the block numbers of the indicated bad blocks to good blocks. |
REASSIGN_BLOCKS_EX The REASSIGN_BLOCKS_EX structure is used in conjunction with the IOCTL_DISK_REASSIGN_BLOCKS_EX request to instruct a disk device to reassign the block numbers of the indicated bad blocks to good blocks. |
SENDCMDINPARAMS The SENDCMDINPARAMS structure contains the input parameters for the SMART_SEND_DRIVE_COMMAND request. |
SENDCMDOUTPARAMS The SENDCMDOUTPARAMS structure is used in conjunction with the SMART_SEND_DRIVE_COMMAND request to retrieve data returned by a Self-Monitoring Analysis and Reporting Technology (SMART) command. |
SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION is used with IOCTL_DISK_SET_PARTITION_INFO to change the partition type of a specified Master Boot Record (MBR) disk partition. |
SET_PARTITION_INFORMATION_EX SET_PARTITION_INFORMATION_EX is used with the IOCTL IOCTL_DISK_SET_PARTITION_INFO_EX to set information for a specific partition. |
VERIFY_INFORMATION The VERIFY_INFORMATION structure provides information used to verify the existence of a disk extent. |
Enumerations
DETECTION_TYPE The DETECTION_TYPE enumeration type is used in conjunction with the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX request and the DISK_GEOMETRY_EX structure to determine the type of formatting used by the BIOS to record the disk geometry. |
DISK_CACHE_RETENTION_PRIORITY The DISK_CACHE_RETENTION_PRIORITY enumeration is used in conjunction with the IOCTL_DISK_GET_CACHE_INFORMATION request and the structure DISK_CACHE_INFORMATION to indicate which kinds data are to be held in the cache on a preferential basis. |
MEDIA_TYPE Learn more about the MEDIA_TYPE enumeration. |
PARTITION_STYLE Learn more about the PARTITION_STYLE enumeration. |