#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The VM_COUNTERS_EX2 structure extends VM_COUNTERS_EX to include private working set size and shared commit usage.
*
* \remarks https://learn.microsoft.com/en-us/windows/win32/api/psapi/ns-psapi-process_memory_counters_ex2
*/
typedef struct _VM_COUNTERS_EX2
{
union
{
VM_COUNTERS_EX CountersEx;
struct
{
SIZE_T PeakVirtualSize; // The peak virtual address space size of this process, in bytes.
SIZE_T VirtualSize; // The virtual address space size of this process, in bytes.
ULONG PageFaultCount; // The number of page faults.
SIZE_T PeakWorkingSetSize; // The peak working set size, in bytes.
SIZE_T WorkingSetSize; // The current working set size, in bytes
SIZE_T QuotaPeakPagedPoolUsage; // The peak paged pool usage, in bytes.
SIZE_T QuotaPagedPoolUsage; // The current paged pool usage, in bytes.
SIZE_T QuotaPeakNonPagedPoolUsage; // The peak non-paged pool usage, in bytes.
SIZE_T QuotaNonPagedPoolUsage; // The current non-paged pool usage, in bytes.
SIZE_T 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.
SIZE_T PeakPagefileUsage; // The peak value in bytes of the Commit Charge during the lifetime of this process.
SIZE_T 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.
};
};
SIZE_T PrivateWorkingSetSize; // The current private working set size, in bytes.
SIZE_T SharedCommitUsage; // The current shared commit usage, in bytes.
} VM_COUNTERS_EX2, *PVM_COUNTERS_EX2;
View code on GitHub
No description available.