GetSystemTime function Null safety kernel32

void GetSystemTime(
  1. Pointer<SYSTEMTIME> lpSystemTime
)

Retrieves the current local date and time.

void GetSystemTime(
  LPSYSTEMTIME lpSystemTime
);

Implementation

void GetSystemTime(Pointer<SYSTEMTIME> lpSystemTime) {
  final _GetSystemTime = _kernel32.lookupFunction<
      Void Function(Pointer<SYSTEMTIME> lpSystemTime),
      void Function(Pointer<SYSTEMTIME> lpSystemTime)>('GetSystemTime');
  return _GetSystemTime(lpSystemTime);
}