resolveTypeRef method

int resolveTypeRef(
  1. int tr,
  2. Pointer<GUID> riid,
  3. Pointer<Pointer<COMObject>> ppIScope,
  4. Pointer<Uint32> ptd,
)

Implementation

int resolveTypeRef(int tr, Pointer<GUID> riid,
        Pointer<Pointer<COMObject>> ppIScope, Pointer<Uint32> ptd) =>
    (ptr.ref.vtable + 15)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(
                            Pointer,
                            Uint32 tr,
                            Pointer<GUID> riid,
                            Pointer<Pointer<COMObject>> ppIScope,
                            Pointer<Uint32> ptd)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer,
                    int tr,
                    Pointer<GUID> riid,
                    Pointer<Pointer<COMObject>> ppIScope,
                    Pointer<Uint32> ptd)>()(
        ptr.ref.lpVtbl, tr, riid, ppIScope, ptd);