Platform SDK: Performance Monitoring

GetWsChanges

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 process
  PPSAPI_WS_WATCH_INFORMATION lpWatchInfo, // buffer
  DWORD cb                                 // size of buffer
);

Parameters

hProcess
[in] Handle to the process.
lpWatchInfo
[out] Pointer to the PSAPI_WS_WATCH_INFORMATION structure that receives information about a page added to a process working set.
cb
[in] Specifies the size, in bytes, of the PSAPI_WS_WATCH_INFORMATION structure.

Return Value

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.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Header: Declared in Psapi.h.
  Library: Use Psapi.lib.

See Also

Process Status Helper Overview, PSAPI Functions, EnumProcesses, InitializeProcessForWsWatch, PSAPI_WS_WATCH_INFORMATION