Exemplo n.º 1
0
        public IntPtr MarshalManagedToNative(object managedObj)
        {
#if RECURSIVE_WRAPPING
            managedObj = NativeToManagedWrapper.GetInterface(ManagedToNativeWrapper.GetInterface((IStream)managedObj), true);
#endif
            return(ManagedToNativeWrapper.GetInterface((IStream)managedObj));
        }
Exemplo n.º 2
0
        public object MarshalNativeToManaged(IntPtr pNativeData)
        {
#if RECURSIVE_WRAPPING
            pNativeData = ManagedToNativeWrapper.GetInterface(NativeToManagedWrapper.GetInterface(pNativeData, true));
#endif
            return(NativeToManagedWrapper.GetInterface(pNativeData, false));
        }
Exemplo n.º 3
0
            public void Clone(out IStream ppstm)
            {
                IntPtr newInterface;

                ThrowExceptionForHR(managedVtable.Clone(comInterface, out newInterface));
                ppstm = NativeToManagedWrapper.GetInterface(newInterface, true);
            }