getProxyConfigurationAsync method
Implementation
Pointer<COMObject> getProxyConfigurationAsync(Uri uri) {
final retValuePtr = calloc<COMObject>();
final uriUri = winrt_uri.Uri.createUri(uri.toString());
final hr = ptr.ref.vtable
.elementAt(10)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject> uri,
Pointer<COMObject>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<COMObject> uri, Pointer<COMObject>)>()(
ptr.ref.lpVtbl,
uriUri.ptr.cast<Pointer<COMObject>>().value,
retValuePtr);
if (FAILED(hr)) {
free(retValuePtr);
throw WindowsException(hr);
}
uriUri.release();
return retValuePtr;
}