getDateTime method
Implementation
DateTime getDateTime() {
final value = calloc<Int64>();
try {
final hr = ptr.ref.vtable
.elementAt(21)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl, Pointer<Int64> value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl, Pointer<Int64> value)>()(
ptr.ref.lpVtbl, value);
if (FAILED(hr)) throwWindowsException(hr);
return value.toDartDateTime();
} finally {
free(value);
}
}