FIX: MAPIInitialize() Fails with MAPI_E_INVALID_FLAGS

ID: Q179116


The information in this article applies to:


SYMPTOMS

After initializing COM with CoInitializeEx() as a multi-threaded application, MAPIInitialize() fails with error 0x80010106, MAPI_E_INVALID_FLAGS.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Exchange version 5.5, Service Pack 1.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a Visual C++ program with the following code:
    
       HRESULT hRes = CoInitialzeEx ( NULL, COINIT_MULTITHREADED );
       hRes = MAPIInitialize ( NULL ); 


  2. Set a break point on the second line of the code sample in step 1.


  3. Run the program on a computer with Exchange version 5.5 without a Service Pack or an earlier version and evaluate hRes after the MAPIInitalize() call to see that it is 80010106 or MAPI_E_INVALID_FLAGS.


Additional query words:


Keywords          : kbMsg kbMAPI100 
Version           : WINDOWS:1.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: August 3, 1999