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

2021-08-20 Thread Ozkan Sezer
On 8/21/21, Jeremy Drake via Mingw-w64-public
 wrote:
> On Fri, 20 Aug 2021, Corinna Vinschen wrote:
>
>> On Aug 20 15:46, Ozkan Sezer wrote:
>> > Those members do not exist in win7 versions of ddk headers.
>> > Are they added for newer windows versions support?
>>
>> The documentation doesn't mention that, but I guess they have
>> been added in W10 or so.
>
> I just checked my Windows 10 SDK headers.  The IsServicePartition member
> is wrapped in
> #if (NTDDI_VERSION >= NTDDI_WIN10_RS3)  /* ABRACADABRA_WIN10_RS3 */
>
> The PartitionId member is wrapped in
> #if (NTDDI_VERSION >= NTDDI_WINBLUE)/* ABRACADABRA_THRESHOLD */

Then we need some equivalent ifdef magic here.


___
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] headers: add two members missing in partition info

2021-08-20 Thread Jeremy Drake via Mingw-w64-public
On Fri, 20 Aug 2021, Corinna Vinschen wrote:

> On Aug 20 15:46, Ozkan Sezer wrote:
> > Those members do not exist in win7 versions of ddk headers.
> > Are they added for newer windows versions support?
>
> The documentation doesn't mention that, but I guess they have
> been added in W10 or so.

I just checked my Windows 10 SDK headers.  The IsServicePartition member
is wrapped in
#if (NTDDI_VERSION >= NTDDI_WIN10_RS3)  /* ABRACADABRA_WIN10_RS3 */

The PartitionId member is wrapped in
#if (NTDDI_VERSION >= NTDDI_WINBLUE)/* ABRACADABRA_THRESHOLD */


___
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] headers: add two members missing in partition info

2021-08-20 Thread Corinna Vinschen
On Aug 20 15:46, Ozkan Sezer wrote:
> On 8/20/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.
> >
> > Corinna Vinschen (2):
> >   headers: add missing PARTITION_INFORMATION_EX member
> >   headers: add missing PARTITION_INFORMATION_MBR member
> 
> Those members do not exist in win7 versions of ddk headers.
> Are they added for newer windows versions support?

The documentation doesn't mention that, but I guess they have
been added in W10 or so.


Corinna


___
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] headers: add two members missing in partition info

2021-08-20 Thread Ozkan Sezer
On 8/20/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.
>
> Corinna Vinschen (2):
>   headers: add missing PARTITION_INFORMATION_EX member
>   headers: add missing PARTITION_INFORMATION_MBR member

Those members do not exist in win7 versions of ddk headers.
Are they added for newer windows versions support?


___
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] headers: add two members missing in partition info

2021-08-20 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.

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


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

2021-08-20 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.

Signed-off-by: Corinna Vinschen 
---
 mingw-w64-headers/include/ntdddisk.h | 1 +
 mingw-w64-headers/include/winioctl.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/mingw-w64-headers/include/ntdddisk.h 
b/mingw-w64-headers/include/ntdddisk.h
index fa0b7865e2fe..7e42af4a7a18 100644
--- a/mingw-w64-headers/include/ntdddisk.h
+++ b/mingw-w64-headers/include/ntdddisk.h
@@ -374,6 +374,7 @@ typedef struct _PARTITION_INFORMATION_EX {
   LARGE_INTEGER  PartitionLength;
   ULONG  PartitionNumber;
   BOOLEAN  RewritePartition;
+  BOOLEAN  IsServicePartition;
   _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..b64afc5e890a 100644
--- a/mingw-w64-headers/include/winioctl.h
+++ b/mingw-w64-headers/include/winioctl.h
@@ -745,6 +745,7 @@ typedef struct _PARTITION_INFORMATION_EX {
   LARGE_INTEGER PartitionLength;
   DWORD PartitionNumber;
   BOOLEAN RewritePartition;
+  BOOLEAN  IsServicePartition;
   __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] headers: add missing PARTITION_INFORMATION_MBR member

2021-08-20 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.

Signed-off-by: Corinna Vinschen 
---
 mingw-w64-headers/include/ntdddisk.h | 1 +
 mingw-w64-headers/include/winioctl.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/mingw-w64-headers/include/ntdddisk.h 
b/mingw-w64-headers/include/ntdddisk.h
index 7e42af4a7a18..78c09ddf216c 100644
--- a/mingw-w64-headers/include/ntdddisk.h
+++ b/mingw-w64-headers/include/ntdddisk.h
@@ -366,6 +366,7 @@ typedef struct _PARTITION_INFORMATION_MBR {
   BOOLEAN  BootIndicator;
   BOOLEAN  RecognizedPartition;
   ULONG  HiddenSectors;
+  GUID PartitionId;
 } 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 b64afc5e890a..6aa89bf50e35 100644
--- a/mingw-w64-headers/include/winioctl.h
+++ b/mingw-w64-headers/include/winioctl.h
@@ -705,6 +705,7 @@ typedef struct _PARTITION_INFORMATION_MBR {
   BOOLEAN BootIndicator;
   BOOLEAN RecognizedPartition;
   DWORD HiddenSectors;
+  GUID PartitionId;
 } 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