Mike McCormack : winnt.h: Add defines for SLIST_HEADER.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 5 07:45:06 CST 2007


Module: wine
Branch: master
Commit: a425bfc622fc1e77e2c96ae5bc669789a58fc79e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a425bfc622fc1e77e2c96ae5bc669789a58fc79e

Author: Mike McCormack <mike at codeweavers.com>
Date:   Fri Jan 26 23:21:41 2007 +0900

winnt.h: Add defines for SLIST_HEADER.

---

 include/winnt.h |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index 47653eb..58c76e2 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -593,6 +593,35 @@ typedef struct _SINGLE_LIST_ENTRY {
   struct _SINGLE_LIST_ENTRY *Next;
 } SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
 
+#ifdef _WIN64
+
+typedef struct _SLIST_ENTRY *PSLIST_ENTRY;
+typedef struct _SLIST_ENTRY {
+    PSLIST_ENTRY Next;
+};
+
+typedef struct _SLIST_HEADER {
+    ULONGLONG Alignment;
+    ULONGLONG Region;
+} SLIST_HEADER, *PSLIST_HEADER;
+
+#else
+
+#define SLIST_ENTRY SINGLE_LIST_ENTRY
+#define _SLIST_ENTRY _SINGLE_LIST_ENTRY
+#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
+
+typedef union _SLIST_HEADER {
+    ULONGLONG Alignment;
+    struct {
+        SLIST_ENTRY Next;
+        WORD Depth;
+        WORD Sequence;
+    };
+} SLIST_HEADER, *PSLIST_HEADER;
+
+#endif
+
 /* Heap flags */
 
 #define HEAP_NO_SERIALIZE               0x00000001




More information about the wine-cvs mailing list