The GetWsChanges function retrieves information about the pages that have been added to the working set of the specified process since the InitializeProcessForWsWatch function initiated monitoring.
BOOL GetWsChanges(
HANDLE hProcess, // handle to the process
PPSAPI_WS_WATCH_INFORMATION lpWatchInfo,
// structure that receives information
DWORD cb // size of the structure
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Process Status Helper Overview, PSAPI Functions, EnumProcesses, InitializeProcessForWsWatch, PSAPI_WS_WATCH_INFORMATION