PSAPI_WORKING_SET_BLOCK union (psapi.h)
Contains working set information for a page.
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;
#if ...
ULONG_PTR VirtualPage : 52;
#else
ULONG_PTR VirtualPage : 20;
#endif
};
} PSAPI_WORKING_SET_BLOCK, *PPSAPI_WORKING_SET_BLOCK;
Flags
The working set information. See the description of the structure members for information about the layout of this variable.
Protection
The protection attributes of the page. This member can be one of the following values.
Value | Meaning |
---|---|
|
The page is not accessed. |
|
Read-only. |
|
Executable. |
|
Executable and read-only. |
|
Read/write. |
|
Copy-on-write. |
|
Executable and read/write. |
|
Executable and copy-on-write. |
|
The page is not accessed. |
|
Non-cacheable and read-only. |
|
Non-cacheable and executable. |
|
Non-cacheable, executable, and read-only. |
|
Non-cacheable and read/write. |
|
Non-cacheable and copy-on-write. |
|
Non-cacheable, executable, and read/write. |
|
Non-cacheable, executable, and copy-on-write. |
|
The page is not accessed. |
|
Guard page and read-only. |
|
Guard page and executable. |
|
Guard page, executable, and read-only. |
|
Guard page and read/write. |
|
Guard page and copy-on-write. |
|
Guard page, executable, and read/write. |
|
Guard page, executable, and copy-on-write. |
|
The page is not accessed. |
|
Non-cacheable, guard page, and read-only. |
|
Non-cacheable, guard page, and executable. |
|
Non-cacheable, guard page, executable, and read-only. |
|
Non-cacheable, guard page, and read/write. |
|
Non-cacheable, guard page, and copy-on-write. |
|
Non-cacheable, guard page, executable, and read/write. |
|
Non-cacheable, guard page, executable, and copy-on-write. |
ShareCount
The number of processes that share this page. The maximum value of this member is 7.
Shared
If this bit is 1, the page is sharable; otherwise, the page is not sharable.
Reserved
This member is reserved.
VirtualPage
The address of the page in the virtual address space.
64-bit Windows: This member is 52 bits in length.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | psapi.h |