addObjectByTemplate method

int addObjectByTemplate(
  1. Pointer<COMObject> pNamespace,
  2. Pointer<COMObject> pTemplate,
  3. int lFlags,
  4. Pointer<COMObject> pContext,
  5. Pointer<Pointer<COMObject>> ppRefreshable,
  6. Pointer<Int32> plId,
)

Implementation

int addObjectByTemplate(
        Pointer<COMObject> pNamespace,
        Pointer<COMObject> pTemplate,
        int lFlags,
        Pointer<COMObject> pContext,
        Pointer<Pointer<COMObject>> ppRefreshable,
        Pointer<Int32> plId) =>
    (ptr.ref.vtable + 4)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(
                            Pointer,
                            Pointer<COMObject> pNamespace,
                            Pointer<COMObject> pTemplate,
                            Int32 lFlags,
                            Pointer<COMObject> pContext,
                            Pointer<Pointer<COMObject>> ppRefreshable,
                            Pointer<Int32> plId)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer,
                    Pointer<COMObject> pNamespace,
                    Pointer<COMObject> pTemplate,
                    int lFlags,
                    Pointer<COMObject> pContext,
                    Pointer<Pointer<COMObject>> ppRefreshable,
                    Pointer<Int32> plId)>()(ptr.ref.lpVtbl, pNamespace,
        pTemplate, lFlags, pContext, ppRefreshable, plId);