FIX: MAPIInitialize() Fails with MAPI_E_INVALID_FLAGS

Last reviewed: January 28, 1998
Article ID: Q179116
The information in this article applies to:
  • Extended Messaging Application Programming Interface (MAPI), version 1.0

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.

Keywords          : EMAPI
Version           : WINDOWS:1.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 28, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.