/// <summary> /// Read messages and indications from the receive buffer. /// </summary> /// <param name="ChannelID">Channel identifier returned from PassThruConnect</param> /// <param name="pMsg">Pointer to message structures</param> /// <param name="pNumMsgs">Indicates how many message structures have been provided; on return, indicates how many messages were received.</param> /// <param name="Timeout">Read timeout, in milliseconds.</param> /// <returns>See Status enumeration</returns> public PassThruStatus PassThruReadMsgs( UInt32 ChannelID, PassThruMsg[] pMsgs, ref UInt32 pNumMsgs, UInt32 Timeout) { return((PassThruStatus)NativeOpenPort20.PassThruReadMsgs(ChannelID, pMsgs, ref pNumMsgs, Timeout)); }
/// <summary> /// Read messages and indications from the receive buffer. /// </summary> /// <param name="ChannelID">Channel identifier returned from PassThruConnect</param> /// <param name="pMsg">Pointer to message structures</param> /// <param name="pNumMsgs">Indicates how many message structures have been provided; on return, indicates how many messages were received.</param> /// <param name="Timeout">Read timeout, in milliseconds.</param> /// <returns>See Status enumeration</returns> public PassThruStatus PassThruReadMsg( UInt32 ChannelID, PassThruMsg[] pMsg, UInt32 Timeout) { UInt32 numMsgs = 1; return((PassThruStatus)NativeOpenPort20.PassThruReadMsgs(ChannelID, pMsg, ref numMsgs, Timeout)); }