GetLocalTime function Null safety kernel32

void GetLocalTime(
  1. Pointer<SYSTEMTIME> lpSystemTime
)

Retrieves the current local date and time.

void GetLocalTime(
  LPSYSTEMTIME lpSystemTime
);

Implementation

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