PSAPI_WORKING_SET_EX_BLOCK union (psapi.h)

包含頁面的擴充工作集資訊。

語法

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;

成員

Flags

工作集資訊。 如需此變數配置的相關信息,請參閱結構成員的描述。

Valid

如果此位為 1,則後續成員有效;否則應該忽略它們。

ShareCount

共用此頁面的進程數目。 此成員的最大值為 7。

Win32Protection

頁面的記憶體保護屬性。 如需值清單,請參閱 記憶體保護常數

Shared

如果此位為 1,則可以共享頁面。

Node

NUMA節點。 此成員的最大值為 63。

Locked

如果此位為 1,虛擬頁面就會鎖定在物理記憶體中。

LargePage

如果這個位為 1,則頁面是大型頁面。

Reserved

保留的。

Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: Windows Server 2012 和 Windows 8 之前,無法使用這個成員。

Bad

如果此位為 1,表示頁面回報為錯誤。

Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: Windows Server 2012 和 Windows 8 之前,無法使用這個成員。

ReservedUlong

保留的。 此成員僅適用於在64位版本的Windows上執行的64位程序代碼。

Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: Windows Server 2012 和 Windows 8 之前,無法使用這個成員。

Invalid

Windows Server 2008 R2、Windows 7、Windows Server 2008、Windows Vista、Windows Server 2003 和 Windows XP: 此結構在 Windows Server 2012 和 Windows 8 之前無法使用。

Invalid.Valid

如果此位為 0,則後續成員有效;否則應該忽略它們。

Invalid.Reserved0

保留的。

Invalid.Shared

如果此位為 1,則可以共享頁面。

Invalid.Reserved1

保留的。

Invalid.Bad

如果此位為 1,表示頁面回報為錯誤。

Invalid.ReservedUlong

保留的。 此成員僅適用於在64位版本的Windows上執行的64位程序代碼。

規格需求

需求
最低支援的用戶端 Windows Vista、Windows XP Professional x64 Edition [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008、Windows Server 2003 SP1 [僅限傳統型應用程式]
標頭 psapi.h

另請參閱

PSAPI 結構

PSAPI_WORKING_SET_EX_INFORMATION

QueryWorkingSetEx