PDSK_GETPHYSDEVICEPARAMS
Appearance
- Category
- IOCTL_PHYSICALDISK (09h)
- Function
- PDSK_GETPHYSDEVICEPARAMS (63h)
- Description
- Query Physical Device Parameters
Description
This function returns the physical device parameters.
Command Information
Reserved. Must be set to 0.
Parameter Packet Format
Field | Length | C Datatype |
---|---|---|
Command Information | BYTE | UCHAR |
Number of Cylinders
The number of cylinders on the physical drive.
Number of Heads
The number of heads on the physical drive.
Number of Sectors per Track
The number of sectors per track on the physical drive.
Data Packet Format
Field | Length | C Datatype |
---|---|---|
Reserved | WORD | USHORT |
Number of Cylinders | WORD | USHORT |
Number of Heads | WORD | USHORT |
Number of Sectors per Track | WORD | USHORT |
Reserved | WORD | USHORT |
Reserved | WORD | USHORT |
Reserved | WORD | USHORT |
Reserved | WORD | USHORT |
Related C Data Structure: The DEVICEPARAMETERBLOCK data structure can be used by C programmers. To include this data structure in your file, make sure INCL_DOSDEVIOCTL is defined before you include OS2.H.
Returns
Possible values are shown in the following list:
Code | Description |
---|---|
0 | NO_ERROR |
1 | ERROR_INVALID_FUNCTION |
6 | ERROR_INVALID_HANDLE |
15 | ERROR_INVALID_DRIVE |
31 | ERROR_GEN_FAILURE |
87 | ERROR_INVALID_PARAMETER |
111 | ERROR_BUFFER_OVERFLOW |
115 | ERROR_PROTECTION_VIOLATION |
117 | ERROR_INVALID_CATEGORY |
119 | ERROR_BAD_DRIVER_LEVEL |
163 | ERROR_UNCERTAIN_MEDIA |
165 | ERROR_MONITORS_NOT_SUPPORTED |
Remarks
The data values returned apply to the entire physical disk.