[PSDK] Add missing PPARTITION_INFORMATION_GPT, PPARTITION_INFORMATION_MBR, PPARTITION_INFORMATION_EX definitions.

Addendum to commit 7ae3d530.
This commit is contained in:
Hermès Bélusca-Maïto 2021-01-07 21:15:04 +01:00
parent 0cce1348c6
commit 8a6ed59156
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -294,7 +294,7 @@ typedef enum _MEDIA_TYPE {
F3_200Mb_512, F3_200Mb_512,
F3_240M_512, F3_240M_512,
F3_32M_512 F3_32M_512
} MEDIA_TYPE,*PMEDIA_TYPE; } MEDIA_TYPE, *PMEDIA_TYPE;
typedef struct _DISK_GEOMETRY { typedef struct _DISK_GEOMETRY {
LARGE_INTEGER Cylinders; LARGE_INTEGER Cylinders;
@ -302,7 +302,7 @@ typedef struct _DISK_GEOMETRY {
DWORD TracksPerCylinder; DWORD TracksPerCylinder;
DWORD SectorsPerTrack; DWORD SectorsPerTrack;
DWORD BytesPerSector; DWORD BytesPerSector;
} DISK_GEOMETRY,*PDISK_GEOMETRY; } DISK_GEOMETRY, *PDISK_GEOMETRY;
typedef struct _PARTITION_INFORMATION { typedef struct _PARTITION_INFORMATION {
LARGE_INTEGER StartingOffset; LARGE_INTEGER StartingOffset;
LARGE_INTEGER PartitionLength; LARGE_INTEGER PartitionLength;
@ -312,7 +312,7 @@ typedef struct _PARTITION_INFORMATION {
BOOLEAN BootIndicator; BOOLEAN BootIndicator;
BOOLEAN RecognizedPartition; BOOLEAN RecognizedPartition;
BOOLEAN RewritePartition; BOOLEAN RewritePartition;
} PARTITION_INFORMATION,*PPARTITION_INFORMATION; } PARTITION_INFORMATION, *PPARTITION_INFORMATION;
typedef struct _DRIVE_LAYOUT_INFORMATION { typedef struct _DRIVE_LAYOUT_INFORMATION {
DWORD PartitionCount; DWORD PartitionCount;
DWORD Signature; DWORD Signature;
@ -320,7 +320,7 @@ typedef struct _DRIVE_LAYOUT_INFORMATION {
} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION; } DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION;
typedef struct _SET_PARTITION_INFORMATION { typedef struct _SET_PARTITION_INFORMATION {
BYTE PartitionType; BYTE PartitionType;
} SET_PARTITION_INFORMATION,*PSET_PARTITION_INFORMATION; } SET_PARTITION_INFORMATION, *PSET_PARTITION_INFORMATION;
#if (_WIN32_WINNT >= 0x0500) #if (_WIN32_WINNT >= 0x0500)
/* Actually it should be > 0x0500, since this is not present in Windows 2000; /* Actually it should be > 0x0500, since this is not present in Windows 2000;
@ -335,17 +335,17 @@ typedef enum _PARTITION_STYLE {
typedef struct _CREATE_DISK_GPT { typedef struct _CREATE_DISK_GPT {
GUID DiskId; GUID DiskId;
DWORD MaxPartitionCount; DWORD MaxPartitionCount;
} CREATE_DISK_GPT,*PCREATE_DISK_GPT; } CREATE_DISK_GPT, *PCREATE_DISK_GPT;
typedef struct _CREATE_DISK_MBR { typedef struct _CREATE_DISK_MBR {
DWORD Signature; DWORD Signature;
} CREATE_DISK_MBR,*PCREATE_DISK_MBR; } CREATE_DISK_MBR, *PCREATE_DISK_MBR;
typedef struct _CREATE_DISK { typedef struct _CREATE_DISK {
PARTITION_STYLE PartitionStyle; PARTITION_STYLE PartitionStyle;
_ANONYMOUS_UNION union { _ANONYMOUS_UNION union {
CREATE_DISK_MBR Mbr; CREATE_DISK_MBR Mbr;
CREATE_DISK_GPT Gpt; CREATE_DISK_GPT Gpt;
}; };
} CREATE_DISK,*PCREATE_DISK; } CREATE_DISK, *PCREATE_DISK;
typedef enum _DETECTION_TYPE { typedef enum _DETECTION_TYPE {
DetectNone, DetectNone,
@ -358,7 +358,7 @@ typedef struct _DISK_INT13_INFO {
WORD SectorsPerTrack; WORD SectorsPerTrack;
WORD MaxHeads; WORD MaxHeads;
WORD NumberDrives; WORD NumberDrives;
} DISK_INT13_INFO,*PDISK_INT13_INFO; } DISK_INT13_INFO, *PDISK_INT13_INFO;
typedef struct _DISK_EX_INT13_INFO { typedef struct _DISK_EX_INT13_INFO {
WORD ExBufferSize; WORD ExBufferSize;
WORD ExFlags; WORD ExFlags;
@ -368,7 +368,7 @@ typedef struct _DISK_EX_INT13_INFO {
DWORD64 ExSectorsPerDrive; DWORD64 ExSectorsPerDrive;
WORD ExSectorSize; WORD ExSectorSize;
WORD ExReserved; WORD ExReserved;
} DISK_EX_INT13_INFO,*PDISK_EX_INT13_INFO; } DISK_EX_INT13_INFO, *PDISK_EX_INT13_INFO;
typedef struct _DISK_DETECTION_INFO { typedef struct _DISK_DETECTION_INFO {
DWORD SizeOfDetectInfo; DWORD SizeOfDetectInfo;
DETECTION_TYPE DetectionType; DETECTION_TYPE DetectionType;
@ -378,7 +378,7 @@ typedef struct _DISK_DETECTION_INFO {
DISK_EX_INT13_INFO ExInt13; DISK_EX_INT13_INFO ExInt13;
}; };
}; };
} DISK_DETECTION_INFO,*PDISK_DETECTION_INFO; } DISK_DETECTION_INFO, *PDISK_DETECTION_INFO;
typedef struct _DISK_PARTITION_INFO { typedef struct _DISK_PARTITION_INFO {
DWORD SizeOfPartitionInfo; DWORD SizeOfPartitionInfo;
PARTITION_STYLE PartitionStyle; PARTITION_STYLE PartitionStyle;
@ -391,12 +391,12 @@ typedef struct _DISK_PARTITION_INFO {
GUID DiskId; GUID DiskId;
} Gpt; } Gpt;
}; };
} DISK_PARTITION_INFO,*PDISK_PARTITION_INFO; } DISK_PARTITION_INFO, *PDISK_PARTITION_INFO;
typedef struct _DISK_GEOMETRY_EX { typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry; DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize; LARGE_INTEGER DiskSize;
BYTE Data[1]; BYTE Data[1];
} DISK_GEOMETRY_EX,*PDISK_GEOMETRY_EX; } DISK_GEOMETRY_EX, *PDISK_GEOMETRY_EX;
#if (NTDDI_VERSION < NTDDI_WS03) #if (NTDDI_VERSION < NTDDI_WS03)
#define DiskGeometryGetPartition(Geometry) \ #define DiskGeometryGetPartition(Geometry) \
@ -419,13 +419,13 @@ typedef struct _PARTITION_INFORMATION_GPT {
GUID PartitionId; GUID PartitionId;
DWORD64 Attributes; DWORD64 Attributes;
WCHAR Name[36]; WCHAR Name[36];
} PARTITION_INFORMATION_GPT; } PARTITION_INFORMATION_GPT, *PPPARTITION_INFORMATION_GPT;
typedef struct _PARTITION_INFORMATION_MBR { typedef struct _PARTITION_INFORMATION_MBR {
BYTE PartitionType; BYTE PartitionType;
BOOLEAN BootIndicator; BOOLEAN BootIndicator;
BOOLEAN RecognizedPartition; BOOLEAN RecognizedPartition;
DWORD HiddenSectors; DWORD HiddenSectors;
} PARTITION_INFORMATION_MBR; } PARTITION_INFORMATION_MBR, *PPARTITION_INFORMATION_MBR;
typedef struct _PARTITION_INFORMATION_EX { typedef struct _PARTITION_INFORMATION_EX {
PARTITION_STYLE PartitionStyle; PARTITION_STYLE PartitionStyle;
LARGE_INTEGER StartingOffset; LARGE_INTEGER StartingOffset;
@ -439,14 +439,14 @@ typedef struct _PARTITION_INFORMATION_EX {
PARTITION_INFORMATION_MBR Mbr; PARTITION_INFORMATION_MBR Mbr;
PARTITION_INFORMATION_GPT Gpt; PARTITION_INFORMATION_GPT Gpt;
}; };
} PARTITION_INFORMATION_EX; } PARTITION_INFORMATION_EX, *PPARTITION_INFORMATION_EX;
typedef struct _DRIVE_LAYOUT_INFORMATION_GPT { typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
GUID DiskId; GUID DiskId;
LARGE_INTEGER StartingUsableOffset; LARGE_INTEGER StartingUsableOffset;
LARGE_INTEGER UsableLength; LARGE_INTEGER UsableLength;
DWORD MaxPartitionCount; DWORD MaxPartitionCount;
} DRIVE_LAYOUT_INFORMATION_GPT,*PDRIVE_LAYOUT_INFORMATION_GPT; } DRIVE_LAYOUT_INFORMATION_GPT, *PDRIVE_LAYOUT_INFORMATION_GPT;
typedef struct _DRIVE_LAYOUT_INFORMATION_MBR { typedef struct _DRIVE_LAYOUT_INFORMATION_MBR {
DWORD Signature; DWORD Signature;
#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) #if (NTDDI_VERSION >= NTDDI_WIN10_RS1)
@ -461,7 +461,7 @@ typedef struct _DRIVE_LAYOUT_INFORMATION_EX {
DRIVE_LAYOUT_INFORMATION_GPT Gpt; DRIVE_LAYOUT_INFORMATION_GPT Gpt;
}; };
PARTITION_INFORMATION_EX PartitionEntry[1]; PARTITION_INFORMATION_EX PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION_EX,*PDRIVE_LAYOUT_INFORMATION_EX; } DRIVE_LAYOUT_INFORMATION_EX, *PDRIVE_LAYOUT_INFORMATION_EX;
typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR; typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR;
typedef PARTITION_INFORMATION_GPT SET_PARTITION_INFORMATION_GPT; typedef PARTITION_INFORMATION_GPT SET_PARTITION_INFORMATION_GPT;