Myah Caron : include: Introduce MEM_EXTENDED_PARAMETER.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 16:59:43 CDT 2020


Module: wine
Branch: master
Commit: 3c8832711ea75f6a2b9d536050d21a6d39f96cb5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3c8832711ea75f6a2b9d536050d21a6d39f96cb5

Author: Myah Caron <qsniyg at protonmail.com>
Date:   Sat Oct 17 01:43:47 2020 +0000

include: Introduce MEM_EXTENDED_PARAMETER.

Signed-off-by: Myah Caron <qsniyg at protonmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/winnt.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/include/winnt.h b/include/winnt.h
index 10b3253923b..1945ee82eab 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -736,6 +736,35 @@ typedef struct _MEMORY_BASIC_INFORMATION
     DWORD    Type;
 } MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION;
 
+#define MEM_EXTENDED_PARAMETER_TYPE_BITS 8
+
+typedef enum MEM_EXTENDED_PARAMETER_TYPE {
+    MemExtendedParameterInvalidType = 0,
+    MemExtendedParameterAddressRequirements,
+    MemExtendedParameterNumaNode,
+    MemExtendedParameterPartitionHandle,
+    MemExtendedParameterUserPhysicalHandle,
+    MemExtendedParameterAttributeFlags,
+    MemExtendedParameterMax
+} MEM_EXTENDED_PARAMETER_TYPE, *PMEM_EXTENDED_PARAMETER_TYPE;
+
+typedef struct DECLSPEC_ALIGN(8) MEM_EXTENDED_PARAMETER {
+    struct
+    {
+        DWORD64 Type : MEM_EXTENDED_PARAMETER_TYPE_BITS;
+        DWORD64 Reserved : 64 - MEM_EXTENDED_PARAMETER_TYPE_BITS;
+    } DUMMYSTRUCTNAME;
+
+    union
+    {
+        DWORD64 ULong64;
+        PVOID Pointer;
+        SIZE_T Size;
+        HANDLE Handle;
+        DWORD ULong;
+    } DUMMYUNIONNAME;
+} MEM_EXTENDED_PARAMETER, *PMEM_EXTENDED_PARAMETER;
+
 #define	PAGE_NOACCESS		0x01
 #define	PAGE_READONLY		0x02
 #define	PAGE_READWRITE		0x04




More information about the wine-cvs mailing list