GetProcessWorkingSetSize function kernel32
Retrieves the minimum and maximum working set sizes of the specified process.
To learn more, see learn.microsoft.com/windows/win32/api/memoryapi/nf-memoryapi-getprocessworkingsetsize.
Implementation
Win32Result<bool> GetProcessWorkingSetSize(
HANDLE hProcess,
Pointer<IntPtr> lpMinimumWorkingSetSize,
Pointer<IntPtr> lpMaximumWorkingSetSize,
) {
final result_ = GetProcessWorkingSetSize_Wrapper(
hProcess,
lpMinimumWorkingSetSize,
lpMaximumWorkingSetSize,
);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}