GlobalMemoryStatusEx function kernel32
Retrieves information about the system's current usage of both physical and virtual memory.
To learn more, see learn.microsoft.com/windows/win32/api/sysinfoapi/nf-sysinfoapi-globalmemorystatusex.
Implementation
Win32Result<bool> GlobalMemoryStatusEx(Pointer<MEMORYSTATUSEX> lpBuffer) {
resolveGetLastError();
final result_ = _GlobalMemoryStatusEx(lpBuffer);
return .new(value: result_ != FALSE, error: GetLastError());
}