EmptyWorkingSet function psapi

Win32Result<bool> EmptyWorkingSet(
  1. HANDLE hProcess
)

Removes as many pages as possible from the working set of the specified process.

To learn more, see learn.microsoft.com/windows/win32/api/psapi/nf-psapi-emptyworkingset.

Implementation

Win32Result<bool> EmptyWorkingSet(HANDLE hProcess) {
  final result_ = EmptyWorkingSet_Wrapper(hProcess);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}