getTable method
Retrieves all entries in the proxy factory table.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationproxyfactorymapping-gettable.
Implementation
Pointer<SAFEARRAY> getTable() {
final table = adaptiveCalloc<Pointer<SAFEARRAY>>();
final hr$ = HRESULT(_GetTableFn(ptr, table));
if (hr$.isError) {
free(table);
throw WindowsException(hr$);
}
final result$ = table.value;
free(table);
return result$;
}