IConverterSession failed with 0x800cce21

Dec 3, 2009 at 2:56 PM
Edited Dec 3, 2009 at 2:57 PM

Hi, I was trying to use MFCMAPI to convert an IMessage to EML using IConverterSession. The process failed with error code 0x800cce21. I tried to play with different flags but no lucks. Anybody knows what this is? I tried to google it. The closest thing I found is a link on MSDN KB. But it is about exchange server 2000. How would this affect IconverterSession? And what does this error code actually mean?

The link to MSDN KB: http://support.microsoft.com/kb/309216

Dec 3, 2009 at 3:01 PM

That error code is MIME_E_INVALID_HEADER_NAME. That should be enough to figure it out. Hint: http://msdn.microsoft.com/en-us/library/ms711736(VS.85).aspx.

Dec 3, 2009 at 3:44 PM

Thank you for the prompt reply and the hint. I now use CCSF_NOHEADERS to convert the message without problem(I have another function to extract the Internet header and replace the IConverterSession header). But I still don't understand why it is related to SetBodyProp(). Isn't it caused by illegal header property? Sorry, not very good at MAPI.

Is there a place for all the error codes in MAPI? I still have few others I need to figure out. For example: 0x800cce3f. I know by using CCSF_USE_TNEF can solve this, but it is better and easier if I know what the code actually means.


Dec 3, 2009 at 4:50 PM

This API isn't technically part of MAPI - I would suggest looking in the header mimeole.h. 0x800cce3f is MIME_E_BAD_TEXT_DATA.

Dec 3, 2009 at 5:14 PM
Edited Dec 3, 2009 at 5:15 PM

Thank you again. This is exactly what I am looking for. Sorry if I ask some MAPI questions, but you are the MAPI expert.