The MQMailParseBody function parses the body of an MSMQ mail message and places the information in a mail data structure.
STDAPI MQMailParseBody( ULONG cbBuffer, LPBYTE FAR *pbBuffer, LPMQMailEMail FAR *ppEMail );
The MQMailParseBody function is used to convert the body of an MSMQ mail message so its information can be used by an MSMQ application.
The application must free the memory allocated for the MQMailEMail object once the parsed information is used. To free the memory call MQMailFreeMemory.
MSMQ mail messages can be received from another MSMQ application or either of the two MSMQ Mail services: MSMQ MAPI Transport Provider or the MSMQ Exchange Connector.