#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The POOLED_USAGE_AND_LIMITS structure contains information about the usage and limits of paged and non-paged pool memory.
*/
typedef struct _POOLED_USAGE_AND_LIMITS
{
SIZE_T PeakPagedPoolUsage; // The peak paged pool usage.
SIZE_T PagedPoolUsage; // The current paged pool usage.
SIZE_T PagedPoolLimit; // The limit on paged pool usage.
SIZE_T PeakNonPagedPoolUsage; // The peak non-paged pool usage.
SIZE_T NonPagedPoolUsage; // The current non-paged pool usage.
SIZE_T NonPagedPoolLimit; // The limit on non-paged pool usage.
SIZE_T PeakPagefileUsage; // The peak pagefile usage.
SIZE_T PagefileUsage; // The current pagefile usage.
SIZE_T PagefileLimit; // The limit on pagefile usage.
} POOLED_USAGE_AND_LIMITS, *PPOOLED_USAGE_AND_LIMITS;
View code on GitHub
This structure describes the kernel pool memory usage and limits for the process.
NtQueryInformationProcess
with ProcessPooledUsageAndLimits
(14)The historical highest size of the paged pool charge in bytes.
The current size of the paged pool charge in bytes.
The paged pool quota size in bytes.
The historical highest size of the non-paged pool charge in bytes.
The current size of the non-paged pool charge in bytes.
The non-paged pool quota size in bytes.
The historical highest usage in bytes of the pagefiles.
The current usage in bytes of the pagefiles.
The pagefile quota size in bytes.