Sends a reply to a message.
Err ReplyMsg( Item msg, int32 result, const void *dataptr,int32 datasize )
This procedure sends a reply to a message.
When replying to a message, send back the same message item you received. (Think of this as sending a reply in the same envelope as the original letter.) Note that you must include a result code (which you provide in the result argument).
The meanings of the dataptr and datasize arguments depend on the type of the original message. (You can find out what type of message it is by looking at its msg.n_Flags field. If it is a small message, the value of the field is MESSAGE_SMALL. If it is a buffered message, the value of the field is MESSAGE_PASS_BY_VALUE.)
The procedure returns 0 if the reply was sent successfully or an error code if an error occurs.
SWI implemented in kernel folio V20.
Most programs handle only one type of message per message port. Each type of message moves information in a different way; programs choose a particular message type to meet their specific needs.
GetMsg
(), GetThisMsg(), ReplySmallMsg(), SendMsg(), SendSmallMsg(), WaitPort()