Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 23:29:08 +0300
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 23:29:08 +0300
commit174cb44b90a20c0b3e0a5d4ed2bd6ab2dcc03506 (patch)
tree602ba579adcbe5f4aae7691cf94994cad942d656 /winsup/w32api
parentad41401c69d623d99e055572114bc338dcb5d010 (diff)
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (PSAPI_WORKING_SET_BLOCK, PSAPI_WORKING_SET_INFORMATION): Define.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog5
-rw-r--r--winsup/w32api/include/winbase.h16
2 files changed, 21 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 95e5aeaee..471798955 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,5 +1,10 @@
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+ * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
+ PSAPI_WORKING_SET_INFORMATION): Define.
+
+2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
* include/winbase.h (__GNUC_EXTENSION): Define, replacing __MINGW_EXTENSION.
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h
index acb90fa7c..c09f2065b 100644
--- a/winsup/w32api/include/winbase.h
+++ b/winsup/w32api/include/winbase.h
@@ -2647,6 +2647,22 @@ typedef PCACTCTXA PCACTCTX;
#endif
#endif
+typedef union _PSAPI_WORKING_SET_BLOCK {
+ ULONG_PTR Flags;
+ struct {
+ ULONG_PTR Protection :5;
+ ULONG_PTR ShareCount :3;
+ ULONG_PTR Shared :1;
+ ULONG_PTR Reserved :3;
+ ULONG_PTR VirtualPage :20;
+ } ;
+} PSAPI_WORKING_SET_BLOCK, *PPSAPI_WORKING_SET_BLOCK;
+
+typedef struct _PSAPI_WORKING_SET_INFORMATION {
+ ULONG_PTR NumberOfEntries;
+ PSAPI_WORKING_SET_BLOCK WorkingSetInfo[1];
+} PSAPI_WORKING_SET_INFORMATION, *PPSAPI_WORKING_SET_INFORMATION;
+
#ifdef __cplusplus
}
#endif