FileTimeToDosDateTime function Null safety kernel32

int FileTimeToDosDateTime(
  1. Pointer<FILETIME> lpFileTime,
  2. Pointer<Uint16> lpFatDate,
  3. Pointer<Uint16> lpFatTime
)

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

BOOL FileTimeToDosDateTime(
  const FILETIME *lpFileTime,
  LPWORD         lpFatDate,
  LPWORD         lpFatTime
);

Implementation

int FileTimeToDosDateTime(Pointer<FILETIME> lpFileTime,
    Pointer<Uint16> lpFatDate, Pointer<Uint16> lpFatTime) {
  final _FileTimeToDosDateTime = _kernel32.lookupFunction<
      Int32 Function(Pointer<FILETIME> lpFileTime, Pointer<Uint16> lpFatDate,
          Pointer<Uint16> lpFatTime),
      int Function(Pointer<FILETIME> lpFileTime, Pointer<Uint16> lpFatDate,
          Pointer<Uint16> lpFatTime)>('FileTimeToDosDateTime');
  return _FileTimeToDosDateTime(lpFileTime, lpFatDate, lpFatTime);
}