GlobalMemoryStatusEx function kernel32

Win32Result<bool> GlobalMemoryStatusEx(
  1. Pointer<MEMORYSTATUSEX> lpBuffer
)

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) {
  final result_ = GlobalMemoryStatusEx_Wrapper(lpBuffer);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}