GetPhysicallyInstalledSystemMemory function Null safety kernel32

int GetPhysicallyInstalledSystemMemory(
  1. Pointer<Uint64> TotalMemoryInKilobytes
)

Retrieves the amount of RAM that is physically installed on the computer.

BOOL GetPhysicallyInstalledSystemMemory(
  PULONGLONG TotalMemoryInKilobytes
);

Implementation

int GetPhysicallyInstalledSystemMemory(Pointer<Uint64> TotalMemoryInKilobytes) {
  final _GetPhysicallyInstalledSystemMemory = _kernel32.lookupFunction<
          Int32 Function(Pointer<Uint64> TotalMemoryInKilobytes),
          int Function(Pointer<Uint64> TotalMemoryInKilobytes)>(
      'GetPhysicallyInstalledSystemMemory');
  return _GetPhysicallyInstalledSystemMemory(TotalMemoryInKilobytes);
}