PROCESS_MEMORY_COUNTERS_EX2 structure (psapi.h)
Contains extended memory statistics for a process. Extends PROCESS_MEMORY_COUNTERS_EX.
Syntax
typedef struct _PROCESS_MEMORY_COUNTERS_EX2 {
DWORD cb;
DWORD PageFaultCount;
SIZE_T PeakWorkingSetSize;
SIZE_T WorkingSetSize;
SIZE_T QuotaPeakPagedPoolUsage;
SIZE_T QuotaPagedPoolUsage;
SIZE_T QuotaPeakNonPagedPoolUsage;
SIZE_T QuotaNonPagedPoolUsage;
SIZE_T PagefileUsage;
SIZE_T PeakPagefileUsage;
SIZE_T PrivateUsage;
SIZE_T PrivateWorkingSetSize;
ULONG64 SharedCommitUsage;
} PROCESS_MEMORY_COUNTERS_EX2;
Members
cb
The size of the structure, in bytes.
PageFaultCount
The number of page faults.
PeakWorkingSetSize
The peak working set size, in bytes.
WorkingSetSize
The current working set size, in bytes
QuotaPeakPagedPoolUsage
The peak paged pool usage, in bytes.
QuotaPagedPoolUsage
The current paged pool usage, in bytes.
QuotaPeakNonPagedPoolUsage
The peak non-paged pool usage, in bytes.
QuotaNonPagedPoolUsage
The current non-paged pool usage, in bytes.
PagefileUsage
The Commit Charge value in bytes for this process. Commit Charge is the total amount of private memory that the memory manager has committed for a running process.
PeakPagefileUsage
The peak value in bytes of the Commit Charge during the lifetime of this process.
PrivateUsage
Same as PagefileUsage. The Commit Charge value in bytes for this process. Commit Charge is the total amount of private memory that the memory manager has committed for a running process.
PrivateWorkingSetSize
The current private working set size, in bytes.
SharedCommitUsage
The current shared commit usage, in bytes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 22H2 with September 2023 cumulative update or Windows 11 22H2 with September 2023 cumulative update |
Header | psapi.h |