getProxyConfigurationAsync method

Pointer<COMObject> getProxyConfigurationAsync(
  1. Pointer<COMObject> uri
)

Implementation

Pointer<COMObject> getProxyConfigurationAsync(
  Pointer<COMObject> uri,
) {
  final retValuePtr = calloc<COMObject>();

  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,
    uri.cast<Pointer<COMObject>>().value,
    retValuePtr,
  );

  if (FAILED(hr)) throw WindowsException(hr);

  return retValuePtr;
}