#ifndef _NTPSAPI_H
/**
* The PROCESS_WS_WATCH_INFORMATION_EX structure contains extended information about a page added to a process working set.
*
* \remarks https://learn.microsoft.com/en-us/windows/win32/api/psapi/ns-psapi-psapi_ws_watch_information_ex
*/
typedef struct _PROCESS_WS_WATCH_INFORMATION_EX
{
union
{
PROCESS_WS_WATCH_INFORMATION BasicInfo;
struct
{
PVOID FaultingPc; // The address of the instruction that caused the page fault.
PVOID FaultingVa; // The virtual address that caused the page fault.
};
};
HANDLE FaultingThreadId; // The identifier of the thread that caused the page fault.
ULONG_PTR Flags; // This member is reserved for future use.
} PROCESS_WS_WATCH_INFORMATION_EX, *PPROCESS_WS_WATCH_INFORMATION_EX;
View code on GitHub
This structure defines an extended Working Set Watch entry.
NtQueryInformationProcess
with ProcessWorkingSetWatchEx
(42)A nested PROCESS_WS_WATCH_INFORMATION
structure with basic information about the page fault.
The ID of the thread that caused the page fault.
This field is currently unused.