/*============================
接收消息
==============================*/
int MsgRcv(int aiMsgKeyID, /*消息队列的msgid,<=0表示要重启*/
long alReceiver, /*入参,本消息的接收者*/
int aiFlagBlock, /*0非阻塞,1阻塞*/
strMsgType *astrMsg) /*出参,消息内容*/
{
int iMsgKeyID = 0;
int iFlag = 0;
if (aiFlagBlock == 0) iFlag =IPC_NOWAIT;
else iFlag = 0;