PSAPI_WORKING_SET_EX_BLOCK union (psapi.h)

Contains extended working set information for a page.

Syntax

typedef union _PSAPI_WORKING_SET_EX_BLOCK {
  ULONG_PTR Flags;
  union {
    struct {
      ULONG_PTR Valid : 1;
      ULONG_PTR ShareCount : 3;
      ULONG_PTR Win32Protection : 11;
      ULONG_PTR Shared : 1;
      ULONG_PTR Node : 6;
      ULONG_PTR Locked : 1;
      ULONG_PTR LargePage : 1;
      ULONG_PTR Reserved : 7;
      ULONG_PTR Bad : 1;
      ULONG_PTR ReservedUlong : 32;
    };
    struct {
      ULONG_PTR Valid : 1;
      ULONG_PTR Reserved0 : 14;
      ULONG_PTR Shared : 1;
      ULONG_PTR Reserved1 : 15;
      ULONG_PTR Bad : 1;
      ULONG_PTR ReservedUlong : 32;
    } Invalid;
  };
} PSAPI_WORKING_SET_EX_BLOCK, *PPSAPI_WORKING_SET_EX_BLOCK;

Members

Flags

The working set information. See the description of the structure members for information about the layout of this variable.

Valid

If this bit is 1, the subsequent members are valid; otherwise they should be ignored.

ShareCount

The number of processes that share this page. The maximum value of this member is 7.

Win32Protection

The memory protection attributes of the page. For a list of values, see Memory Protection Constants.

Shared

If this bit is 1, the page can be shared.

Node

The NUMA node. The maximum value of this member is 63.

Locked

If this bit is 1, the virtual page is locked in physical memory.

LargePage

If this bit is 1, the page is a large page.

Reserved

Reserved.

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This member is not available before Windows Server 2012 and Windows 8.

Bad

If this bit is 1, the page is has been reported as bad.

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This member is not available before Windows Server 2012 and Windows 8.

ReservedUlong

Reserved. This member is only available on 64-bit code running on 64-bit editions of Windows.

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This member is not available before Windows Server 2012 and Windows 8.

Invalid

Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This structure is not available before Windows Server 2012 and Windows 8.

Invalid.Valid

If this bit is 0, the subsequent members are valid; otherwise they should be ignored.

Invalid.Reserved0

Reserved.

Invalid.Shared

If this bit is 1, the page can be shared.

Invalid.Reserved1

Reserved.

Invalid.Bad

If this bit is 1, the page is has been reported as bad.

Invalid.ReservedUlong

Reserved. This member is only available on 64-bit code running on 64-bit editions of Windows.

Requirements

Requirement Value
Minimum supported client Windows Vista, Windows XP Professional x64 Edition [desktop apps only]
Minimum supported server Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]
Header psapi.h

See also

PSAPI Structures

PSAPI_WORKING_SET_EX_INFORMATION

QueryWorkingSetEx