summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/winnt.h
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-11-23 20:29:02 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2003-11-23 20:29:02 +0000
commit3ad60fc80809efe14cf3555d2ed4b232b00bdc30 (patch)
tree0d656d5b28432ac450cdd78e0dc7c1177f6c7d6c /winsup/w32api/include/winnt.h
parent4b1bc69287d678b0553660cd726052766c93cf4c (diff)
downloadcygnal-3ad60fc80809efe14cf3555d2ed4b232b00bdc30.tar.gz
cygnal-3ad60fc80809efe14cf3555d2ed4b232b00bdc30.tar.bz2
cygnal-3ad60fc80809efe14cf3555d2ed4b232b00bdc30.zip
* include/winnt.h (PAGE_*): Group defines together. Change
constants to hex notation.
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r--winsup/w32api/include/winnt.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index 9002aa885..17bfeb90b 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -712,9 +712,6 @@ typedef DWORD FLONG;
#define PF_RDTSC_INSTRUCTION_AVAILABLE 8
#define PF_PAE_ENABLED 9
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
-#define PAGE_READONLY 2
-#define PAGE_READWRITE 4
-#define PAGE_WRITECOPY 8
/* also in ddk/ntifs.h */
#define FILE_ACTION_ADDED 0x00000001
#define FILE_ACTION_REMOVED 0x00000002
@@ -767,12 +764,16 @@ typedef DWORD FLONG;
#define DACL_SECURITY_INFORMATION 4
#define SACL_SECURITY_INFORMATION 8
#define MAXIMUM_PROCESSORS 32
-#define PAGE_EXECUTE 16
-#define PAGE_EXECUTE_READ 32
-#define PAGE_EXECUTE_READWRITE 64
-#define PAGE_GUARD 256
-#define PAGE_NOACCESS 1
-#define PAGE_NOCACHE 512
+#define PAGE_NOACCESS 0x0001
+#define PAGE_READONLY 0x0002
+#define PAGE_READWRITE 0x0004
+#define PAGE_WRITECOPY 0x0008
+#define PAGE_EXECUTE 0x0010
+#define PAGE_EXECUTE_READ 0x0020
+#define PAGE_EXECUTE_READWRITE 0x0040
+#define PAGE_EXECUTE_WRITECOPY 0x0080
+#define PAGE_GUARD 0x0100
+#define PAGE_NOCACHE 0x0200
#define MEM_COMMIT 0x1000
#define MEM_RESERVE 0x2000
#define MEM_DECOMMIT 0x4000
@@ -796,7 +797,6 @@ typedef DWORD FLONG;
#define SEC_COMMIT 0x08000000
#define SEC_NOCACHE 0x10000000
/* end ntifs.h */
-#define PAGE_EXECUTE_WRITECOPY 128
#define SECTION_EXTEND_SIZE 16
#define SECTION_MAP_READ 4
#define SECTION_MAP_WRITE 2