#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The PROCESS_WORKING_SET_CONTROL structure is used to control the working set of a process.
*/
typedef struct _PROCESS_WORKING_SET_CONTROL
{
ULONG Version; // PROCESS_WORKING_SET_CONTROL_VERSION
PROCESS_WORKING_SET_OPERATION Operation; // < ProcessWorkingSetOperationMax on this build
union
{
ULONG Flags; // For ProcessWorkingSetSwap: 0 or 1. For ProcessWorkingSetEmpty: only bits 0..5 are accepted.
struct
{
ULONG EmptyPrivatePages : 1; // PROCESS_WORKING_SET_FLAG_EMPTY_PRIVATE_PAGES
ULONG EmptySharedPages : 1; // PROCESS_WORKING_SET_FLAG_EMPTY_SHARED_PAGES
ULONG EmptyPages : 1; // PROCESS_WORKING_SET_FLAG_EMPTY_PAGES
ULONG Compress : 1; // PROCESS_WORKING_SET_FLAG_COMPRESS
ULONG Store : 1; // PROCESS_WORKING_SET_FLAG_STORE
ULONG Spare : 27;
};
};
} PROCESS_WORKING_SET_CONTROL, *PPROCESS_WORKING_SET_CONTROL;
View code on GitHubNo description available.