Re: [Mingw-w64-public] [PATCH 0/2 v2] headers: add two members missing in partition info

2021-08-21 Thread Ozkan Sezer
On 8/21/21, Corinna Vinschen  wrote:
> From: Corinna Vinschen 
>
> MSDN documents struct members in partition info not defined in the
> mingw-w64 headers ntdddisk.h and winioctl.h.  Add them.
>
> v2: Add feature tests
>
> Corinna Vinschen (2):
>   headers: add missing PARTITION_INFORMATION_EX member
>   headers: add missing PARTITION_INFORMATION_MBR member
>
>  mingw-w64-headers/include/ntdddisk.h | 2 ++
>  mingw-w64-headers/include/winioctl.h | 2 ++
>  2 files changed, 4 insertions(+)

Applied the two patches to master. Thanks.

--
O.S.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 0/2 v2] headers: add two members missing in partition info

2021-08-21 Thread Ozkan Sezer
On 8/21/21, Corinna Vinschen  wrote:
> From: Corinna Vinschen 
>
> MSDN documents struct members in partition info not defined in the
> mingw-w64 headers ntdddisk.h and winioctl.h.  Add them.
>
> v2: Add feature tests
>
> Corinna Vinschen (2):
>   headers: add missing PARTITION_INFORMATION_EX member
>   headers: add missing PARTITION_INFORMATION_MBR member

Looks good to me now.

--
O.S.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 1/2 v2] headers: add missing PARTITION_INFORMATION_EX member

2021-08-21 Thread Corinna Vinschen
From: Corinna Vinschen 

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 
---
 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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 2/2 v2] headers: add missing PARTITION_INFORMATION_MBR member

2021-08-21 Thread Corinna Vinschen
From: Corinna Vinschen 

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 
---
 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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 0/2 v2] headers: add two members missing in partition info

2021-08-21 Thread Corinna Vinschen
From: Corinna Vinschen 

MSDN documents struct members in partition info not defined in the
mingw-w64 headers ntdddisk.h and winioctl.h.  Add them.

v2: Add feature tests

Corinna Vinschen (2):
  headers: add missing PARTITION_INFORMATION_EX member
  headers: add missing PARTITION_INFORMATION_MBR member

 mingw-w64-headers/include/ntdddisk.h | 2 ++
 mingw-w64-headers/include/winioctl.h | 2 ++
 2 files changed, 4 insertions(+)

-- 
2.31.1



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public