Exemplo n.º 1
0
        public virtual int FreeBuffer(
            out tagRPCOLEMESSAGE pMessage
            )
        {
            var fp = GetFunctionPointer(5);

            if (m_FreeBufferFunc == null)
            {
                m_FreeBufferFunc = (FreeBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(FreeBufferFunc));
            }

            return(m_FreeBufferFunc(m_ptr, out pMessage));
        }
Exemplo n.º 2
0
        public virtual int Invoke(
            out tagRPCOLEMESSAGE _prpcmsg,
            IRpcChannelBuffer _pRpcChannelBuffer
            )
        {
            var fp = GetFunctionPointer(5);

            if (m_InvokeFunc == null)
            {
                m_InvokeFunc = (InvokeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvokeFunc));
            }

            return(m_InvokeFunc(m_ptr, out _prpcmsg, _pRpcChannelBuffer != null ? _pRpcChannelBuffer.Ptr : IntPtr.Zero));
        }
Exemplo n.º 3
0
        public virtual int SendReceive(
            out tagRPCOLEMESSAGE pMessage,
            out uint pStatus
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_SendReceiveFunc == null)
            {
                m_SendReceiveFunc = (SendReceiveFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SendReceiveFunc));
            }

            return(m_SendReceiveFunc(m_ptr, out pMessage, out pStatus));
        }
Exemplo n.º 4
0
        public virtual int GetBuffer(
            out tagRPCOLEMESSAGE pMessage,
            ref Guid riid
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_GetBufferFunc == null)
            {
                m_GetBufferFunc = (GetBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetBufferFunc));
            }

            return(m_GetBufferFunc(m_ptr, out pMessage, ref riid));
        }