DosDateTimeToFileTime function Null safety kernel32

int DosDateTimeToFileTime(
  1. int wFatDate,
  2. int wFatTime,
  3. Pointer<FILETIME> lpFileTime

Converts MS-DOS date and time values to a file time.

BOOL DosDateTimeToFileTime(
  WORD       wFatDate,
  WORD       wFatTime,


int DosDateTimeToFileTime(
    int wFatDate, int wFatTime, Pointer<FILETIME> lpFileTime) {
  final _DosDateTimeToFileTime = _kernel32.lookupFunction<
      Int32 Function(
          Uint16 wFatDate, Uint16 wFatTime, Pointer<FILETIME> lpFileTime),
      int Function(int wFatDate, int wFatTime,
          Pointer<FILETIME> lpFileTime)>('DosDateTimeToFileTime');
  return _DosDateTimeToFileTime(wFatDate, wFatTime, lpFileTime);