// ntdddisk.h
typedef struct _DISK_DETECTION_INFO {
ULONG SizeOfDetectInfo;
DETECTION_TYPE DetectionType;
union {
struct {
DISK_INT13_INFO Int13;
DISK_EX_INT13_INFO ExInt13;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
} DISK_DETECTION_INFO, *PDISK_DETECTION_INFO;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _DISK_DETECTION_INFO {
DWORD SizeOfDetectInfo;
DETECTION_TYPE DetectionType;
union {
struct {
DISK_INT13_INFO Int13;
DISK_EX_INT13_INFO ExInt13;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
} DISK_DETECTION_INFO, *PDISK_DETECTION_INFO;
View the official Win32 API referenceNo description available.
The DISK_DETECTION_INFO structure contains the detected drive parameters that are supplied by an x86 PC BIOS on boot.
SizeOfDetectInfoContains the quantity, in bytes, of retrieved detect information.
DetectionTypeA DETECTION_TYPE value that determines the type of formatting used by the BIOS to record the disk geometry.
DUMMYUNIONNAMEDUMMYUNIONNAME.DUMMYSTRUCTNAMEDUMMYUNIONNAME.DUMMYSTRUCTNAME.Int13A DISK_INT13_INFO structure when DetectionType is DetectInt13.
DUMMYUNIONNAME.DUMMYSTRUCTNAME.ExInt13A DISK_EX_INT13_INFO structure when DetectionType is DetectExInt13.
Contains detected drive parameters.
SizeOfDetectInfoThe size of the structure, in bytes.
DetectionTypeThe detected partition type.
This member can be one of the following values from the DETECTION_TYPE enumeration.
| Value | Enumeration | Meaning |
|---|---|---|
| DetectExInt13 | 2 | The disk has an extended Int13 partition. |
| DetectInt13 | 1 | The disk has a standard Int13 partition. |
| DetectNone | 0 | The disk does not have an Int13 or an extended Int13 partition. |
DUMMYUNIONNAMEDUMMYUNIONNAME.DUMMYSTRUCTNAMEDUMMYUNIONNAME.DUMMYSTRUCTNAME.Int13If DetectionType is DetectInt13, the union is a DISK_INT13_INFO structure.
DUMMYUNIONNAME.DUMMYSTRUCTNAME.ExInt13If DetectionType is DetectExInt13, the union is a DISK_EX_INT13_INFO structure.
DISK_EX_INT13_INFO, DISK_INT13_INFO, DISK_GEOMETRY_EX