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

  Switch on low bandwidth view
PROCESS_MEMORY_COUNTERS Structure

Contains the memory statistics for a process.

Syntax

C++
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

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPsapi.h

See Also

GetProcessMemoryInfo
Memory Performance Information

Send comments about this topic to Microsoft

Build date: 7/2/2009

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