proxyFactoryMapping property

Pointer<COMObject> proxyFactoryMapping

Implementation

Pointer<COMObject> get proxyFactoryMapping {
  final retValuePtr = calloc<COMObject>();

  final hr = (ptr.ref.vtable + 48)
          .cast<
              Pointer<
                  NativeFunction<
                      Int32 Function(
                          Pointer, Pointer<COMObject> factoryMapping)>>>()
          .value
          .asFunction<
              int Function(Pointer, Pointer<COMObject> factoryMapping)>()(
      ptr.ref.lpVtbl, retValuePtr);

  if (FAILED(hr)) {
    free(retValuePtr);
    throw WindowsException(hr);
  }

  return retValuePtr;
}