year property
int
get
year
Implementation
int get year {
final retValuePtr = calloc<Int32>();
try {
final hr = ptr.ref.vtable
.elementAt(30)
.cast<
Pointer<
NativeFunction<HRESULT Function(Pointer, Pointer<Int32>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Int32>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
final retValue = retValuePtr.value;
return retValue;
} finally {
free(retValuePtr);
}
}
set
year
(int value)
Implementation
set year(int value) {
final hr = ptr.ref.vtable
.elementAt(31)
.cast<Pointer<NativeFunction<HRESULT Function(Pointer, Int32)>>>()
.value
.asFunction<int Function(Pointer, int)>()(ptr.ref.lpVtbl, value);
if (FAILED(hr)) throw WindowsException(hr);
}