getInspectableArray method
Implementation
List<Object?> getInspectableArray() {
final valueSize = calloc<Uint32>();
final value = calloc<Pointer<COMObject>>();
try {
final hr = ptr.ref.vtable
.elementAt(38)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl,
Pointer<Uint32> valueSize,
Pointer<Pointer<COMObject>> value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl, Pointer<Uint32> valueSize,
Pointer<Pointer<COMObject>> value)>()(
ptr.ref.lpVtbl, valueSize, value);
if (FAILED(hr)) throwWindowsException(hr);
return value.value.toObjectList(length: valueSize.value);
} finally {
free(valueSize);
free(value);
}
}