GetSystemInfo function Null safety kernel32

void GetSystemInfo(
  1. Pointer<SYSTEM_INFO> lpSystemInfo
)

Retrieves information about the current system. To retrieve accurate information for an application running on WOW64, call the GetNativeSystemInfo function.

void GetSystemInfo(
  LPSYSTEM_INFO lpSystemInfo
);

Implementation

void GetSystemInfo(Pointer<SYSTEM_INFO> lpSystemInfo) {
  final _GetSystemInfo = _kernel32.lookupFunction<
      Void Function(Pointer<SYSTEM_INFO> lpSystemInfo),
      void Function(Pointer<SYSTEM_INFO> lpSystemInfo)>('GetSystemInfo');
  return _GetSystemInfo(lpSystemInfo);
}