Esempio n. 1
0
        public IntPtr MarshalManagedToNative(object managedObj)
        {
            MFP_EVENT_HEADER eh = managedObj as MFP_EVENT_HEADER;

            IntPtr ip = eh.GetPtr();

            return(ip);
        }
Esempio n. 2
0
        // Called just after invoking the COM method.  The IntPtr is the same one that just got returned
        // from MarshalManagedToNative.  The return value is unused.
        public object MarshalNativeToManaged(IntPtr pNativeData)
        {
            MFP_EVENT_HEADER eh = MFP_EVENT_HEADER.PtrToEH(pNativeData);

            return(eh);
        }