attributes property
FileAttributes
get
attributes
Implementation
FileAttributes get attributes {
final retValuePtr = calloc<Uint32>();
try {
final hr = ptr.ref.vtable
.elementAt(13)
.cast<
Pointer<
NativeFunction<HRESULT Function(Pointer, Pointer<Uint32>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Uint32>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
return FileAttributes.from(retValuePtr.value);
} finally {
free(retValuePtr);
}
}