Ejemplo n.º 1
0
        protected unsafe ITrackerObjectWrapper(ComWrappers cw, bool aggregateRefTracker)
        {
            ComWrappersHelper.Init <ITrackerObjectWrapper>(ref this.classNative, this, aggregateRefTracker, cw, &CreateInstance);

            var inst = Marshal.PtrToStructure <VtblPtr>(this.classNative.Instance);

            this.vtable = Marshal.PtrToStructure <ITrackerObjectWrapperVtbl>(inst.Vtbl);
Ejemplo n.º 2
0
        public ITrackerObjectWrapper(IntPtr instance)
        {
            var inst = Marshal.PtrToStructure <VtblPtr>(instance);

            this.vtable   = Marshal.PtrToStructure <ITrackerObjectWrapperVtbl>(inst.Vtbl);
            this.instance = instance;
        }
Ejemplo n.º 3
0
        public ITrackerObjectWrapper(IntPtr instancePtr)
        {
            var inst = Marshal.PtrToStructure <VtblPtr>(instancePtr);

            this.vtable = Marshal.PtrToStructure <ITrackerObjectWrapperVtbl>(inst.Vtbl);
            this.classNative.Instance = instancePtr;
            this.classNative.Release  = ComWrappersHelper.ReleaseFlags.Instance;
        }