From: Corinna Vinschen <[email protected]>

Per 
https://docs.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-partition_information_ex
the PARTITION_INFORMATION_EX struct contains a BOOLEAN member called
IsServicePartition.  Add it.

v2: add NTDDI_WIN10_RS3 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 fa0b7865e2fe..90e4e98725f9 100644
--- a/mingw-w64-headers/include/ntdddisk.h
+++ b/mingw-w64-headers/include/ntdddisk.h
@@ -374,6 +374,9 @@ typedef struct _PARTITION_INFORMATION_EX {
   LARGE_INTEGER  PartitionLength;
   ULONG  PartitionNumber;
   BOOLEAN  RewritePartition;
+#if NTDDI_VERSION >= NTDDI_WIN10_RS3
+  BOOLEAN  IsServicePartition;
+#endif
   _ANONYMOUS_UNION union {
     PARTITION_INFORMATION_MBR  Mbr;
     PARTITION_INFORMATION_GPT  Gpt;
diff --git a/mingw-w64-headers/include/winioctl.h 
b/mingw-w64-headers/include/winioctl.h
index 76664e577d7a..9c8f57ee66a9 100644
--- a/mingw-w64-headers/include/winioctl.h
+++ b/mingw-w64-headers/include/winioctl.h
@@ -745,6 +745,9 @@ typedef struct _PARTITION_INFORMATION_EX {
   LARGE_INTEGER PartitionLength;
   DWORD PartitionNumber;
   BOOLEAN RewritePartition;
+#if NTDDI_VERSION >= NTDDI_WIN10_RS3
+  BOOLEAN  IsServicePartition;
+#endif
   __C89_NAMELESS union {
     PARTITION_INFORMATION_MBR Mbr;
     PARTITION_INFORMATION_GPT Gpt;
-- 
2.31.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to