Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
PSAPI Reference
PSAPI Structures
 PROCESS_MEMORY_COUNTERS Structure
PROCESS_MEMORY_COUNTERS Structure

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

ClientRequires Windows Vista, Windows XP, or Windows 2000 Professional.
ServerRequires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
HeaderDeclared in Psapi.h.

See Also

GetProcessMemoryInfo
Memory Performance Information


Send comments about this topic to Microsoft

Build date: 10/9/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker