MBM.MsgReceive (FUN)

This function of the CAA_MemBlockMan.Library tries to get a  Message hMsg out of Exchange hXChg. If no message could be retrieved,  hMsg is equal to CAA.gc_hINVALID. 

Input:

hXChg

CAA.HANDLE

Handle of the Exchange.

pctMsgLeft

POINTER TO CAA.COUNT

Pointer of the counter of the still available Messages.

peError

POINTER TO MBM.ERROR

Pointer on error ID.

Output:

hMsg

CAA.HANDLE

Handle of the Message.