SetDateTime method
Implementation
void SetDateTime(DateTime value) {
final valueDateTime =
value.difference(DateTime.utc(1601, 01, 01)).inMicroseconds * 10;
final hr = _thisPtr.ref.vtable
.elementAt(17)
.cast<
Pointer<NativeFunction<HRESULT Function(Pointer, Uint64 value)>>>()
.value
.asFunction<
int Function(
Pointer, int value)>()(_thisPtr.ref.lpVtbl, valueDateTime);
if (FAILED(hr)) throw WindowsException(hr);
}