bindToStorage method

int bindToStorage(
  1. Pointer<ITEMIDLIST> pidl,
  2. Pointer<COMObject> pbc,
  3. Pointer<GUID> riid,
  4. Pointer<Pointer<NativeType>> ppv,
)

Implementation

int bindToStorage(Pointer<ITEMIDLIST> pidl, Pointer<COMObject> pbc,
        Pointer<GUID> riid, Pointer<Pointer> ppv) =>
    (ptr.ref.vtable + 6)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(
                            Pointer,
                            Pointer<ITEMIDLIST> pidl,
                            Pointer<COMObject> pbc,
                            Pointer<GUID> riid,
                            Pointer<Pointer> ppv)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer,
                    Pointer<ITEMIDLIST> pidl,
                    Pointer<COMObject> pbc,
                    Pointer<GUID> riid,
                    Pointer<Pointer> ppv)>()(
        ptr.ref.lpVtbl, pidl, pbc, riid, ppv);