openScopeOnMemory method

int openScopeOnMemory(
  1. Pointer<NativeType> pData,
  2. int cbData,
  3. int dwOpenFlags,
  4. Pointer<GUID> riid,
  5. Pointer<Pointer<COMObject>> ppIUnk,
)

Implementation

int openScopeOnMemory(Pointer pData, int cbData, int dwOpenFlags,
        Pointer<GUID> riid, Pointer<Pointer<COMObject>> ppIUnk) =>
    (ptr.ref.vtable + 5)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(
                            Pointer,
                            Pointer pData,
                            Uint32 cbData,
                            Uint32 dwOpenFlags,
                            Pointer<GUID> riid,
                            Pointer<Pointer<COMObject>> ppIUnk)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer,
                    Pointer pData,
                    int cbData,
                    int dwOpenFlags,
                    Pointer<GUID> riid,
                    Pointer<Pointer<COMObject>> ppIUnk)>()(
        ptr.ref.lpVtbl, pData, cbData, dwOpenFlags, riid, ppIUnk);