PRB: MAPIInitialize from Console App can Block Windows MessagesLast reviewed: July 18, 1997Article ID: Q171428 |
The information in this article applies to:
SYMPTOMSCalling the MAPIInitialize() function from a console application can block windows messages to other Windows applications.
CAUSEThe console application has not provided a message loop to allow the Windows Operating System to address the requests of other Windows applications.
RESOLUTIONWrite the code as a Windows application or alternately try using the PeekMessage loop API call. For more information on implementing PeekMessage loop functionality, please see the following article(s) in the Microsoft Knowledge Base:
ARTICLE-ID: Q74042 TITLE : How to Use PeekMessage() Correctly in Windows STATUSThis behavior is by design.
MORE INFORMATIONCode sample that demonstrates issue follows:
#include "mapix.h" #include "conio.h" void main() { HRESULT hrT = NOERROR; hrT = MAPIInitialize(NULL); getch(); } Step 4 should close Date/Time, but it remains open and blocked until the (MAPIInitialize) application is closed.
|
Keywords : EMAPI kbcode
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |