Platform SDK: Exchange Server

HrCnvConvert

The HrCnvConvert function performs the actual translation between message formats. When called, this function will be passed pointers to the object to be translated and to a stream object which HrCnvConvert should write the results of the translation to.

Translating outgoing messages means using MAPI calls to retrieve the relevant properties of the outgoing message and writing their values to the output stream in whatever format is appropriate for the foreign system. Translating incoming messages means interpreting the incoming message’s data (often just a stream of bytes) and writing the data to properties on the output message.

The IPM_IN and IPM_OUT sample translation DLLs, located in the \SAMPLES\DbMsg\EXCHANGE directory, contain examples of HrCnvConvert functions for converting RFC-822 messages (Internet style SMTP messages) to and from MAPI messages.