get_process_working_set_size


bool get_process_working_set_size(handle process,
                                  ulong* minimum,
                                  ulong* maximum);

This function obtains the working set minimum and maximum for the process.

Parameters

handle process

The handle of the process whose working set size is being queried.

ulong* minimum

A pointer to a variable that is updated to contain the minimum working set of the process (in bytes).

ulong* maximum

A pointer to a variable that is updated to contain the maximum working set of the process (in bytes).

Return

bool

false The function failed.
true The function succeeded.

Notes

A working set is a collection of pages resident in physical memory.

pages in the working set may be accessed without incurring a page fault.

The virtual memory manager attempts to keep the specified minimum number of pages in physical memory and no more than the specified maximum number of pages in physical memory.