Contains the memory statistics for a process.
Syntax
|
typedef struct _PROCESS_MEMORY_COUNTERS { 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;
} PROCESS_MEMORY_COUNTERS, *PPROCESS_MEMORY_COUNTERS; |
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 nonpaged pool usage, in bytes.
- QuotaNonPagedPoolUsage
The current nonpaged pool usage, in bytes.
- PagefileUsage
The current space allocated for the pagefile, in bytes. Those pages may or may not be in memory.
- PeakPagefileUsage
The peak space allocated for the pagefile, in bytes.
Examples
For an example, see
Collecting Memory Usage Information for a Process.
Requirements
| Client | Requires Windows Vista, Windows XP, or Windows 2000 Professional. |
| Server | Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server. |
|---|
| Header | Declared in Psapi.h. |
See Also
GetProcessMemoryInfo
Memory Performance Information
Send comments about this topic to Microsoft
Build date: 10/9/2008