INFO: MAPI_NO_COINIT Flag To Make MAPIInitialize Not Call CoInit (239853)
The information in this article applies to:
- Microsoft Exchange Server 5.5 SP1
- Microsoft Extended Messaging Application Programming Interface (MAPI)
This article was previously published under Q239853 SUMMARY
If CoInitializeEx is called with the COINIT_MULTITHREADED flag before MAPIInitialize is called, you will get error 0x80010106 (E_INVALID_FLAGS or RPC_E_CHANGED_MODE). To prevent this error, set MAPI_NO_COINIT (value of 0x8) in the ulFlags member of the MAPIINIT_0 structure passed in MAPIInitialize.
Please note the COINIT_MULTITHREADED flag was added to MAPI in Exchange 5.5 SP1.
REFERENCES
For additional information about a related fix, please click the article number below in the Microsoft Knowledge Base:
179116 FIX: MAPIInitialize() Fails with MAPI_E_INVALID_FLAGS
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbinfo kbMsg KB239853 |
---|
|