VariantTimeToDosDateTime function Null safety oleaut32

int VariantTimeToDosDateTime(
  1. double vtime,
  2. Pointer<Uint16> pwDosDate,
  3. Pointer<Uint16> pwDosTime
)

Converts the variant representation of a date and time to MS-DOS date and time values.

INT VariantTimeToDosDateTime(
  DOUBLE vtime,
  USHORT *pwDosDate,
  USHORT *pwDosTime
);

Implementation

int VariantTimeToDosDateTime(
    double vtime, Pointer<Uint16> pwDosDate, Pointer<Uint16> pwDosTime) {
  final _VariantTimeToDosDateTime = _oleaut32.lookupFunction<
      Int32 Function(
          Double vtime, Pointer<Uint16> pwDosDate, Pointer<Uint16> pwDosTime),
      int Function(double vtime, Pointer<Uint16> pwDosDate,
          Pointer<Uint16> pwDosTime)>('VariantTimeToDosDateTime');
  return _VariantTimeToDosDateTime(vtime, pwDosDate, pwDosTime);
}