From: Corinna Vinschen <[email protected]> Per https://docs.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-partition_information_mbr the PARTITION_INFORMATION_MBR struct contains a GUID member called PartitionId. Add it.
v2: add NTDDI_WINBLUE feature test Signed-off-by: Corinna Vinschen <[email protected]> --- mingw-w64-headers/include/ntdddisk.h | 3 +++ mingw-w64-headers/include/winioctl.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mingw-w64-headers/include/ntdddisk.h b/mingw-w64-headers/include/ntdddisk.h index 90e4e98725f9..ed032370383e 100644 --- a/mingw-w64-headers/include/ntdddisk.h +++ b/mingw-w64-headers/include/ntdddisk.h @@ -366,6 +366,9 @@ typedef struct _PARTITION_INFORMATION_MBR { BOOLEAN BootIndicator; BOOLEAN RecognizedPartition; ULONG HiddenSectors; +#if NTDDI_VERSION > NTDDI_WINBLUE + GUID PartitionId; +#endif } PARTITION_INFORMATION_MBR, *PPARTITION_INFORMATION_MBR; typedef struct _PARTITION_INFORMATION_EX { diff --git a/mingw-w64-headers/include/winioctl.h b/mingw-w64-headers/include/winioctl.h index 9c8f57ee66a9..68982c76dba3 100644 --- a/mingw-w64-headers/include/winioctl.h +++ b/mingw-w64-headers/include/winioctl.h @@ -705,6 +705,9 @@ typedef struct _PARTITION_INFORMATION_MBR { BOOLEAN BootIndicator; BOOLEAN RecognizedPartition; DWORD HiddenSectors; +#if NTDDI_VERSION > NTDDI_WINBLUE + GUID PartitionId; +#endif } PARTITION_INFORMATION_MBR,*PPARTITION_INFORMATION_MBR; typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR; -- 2.31.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
