mapi_multithread_notifications +adviseSink

Oct 22, 2008 at 12:40 AM
Steve, what are the reasons behind MFCMAPI handling notifications on the main thread vs using mapi_multithread_notifications to handle notifications on a dedicated MAPI thread?

Oct 22, 2008 at 1:44 PM
Basically, that's just the way I wrote the code, and there hasn't been a compelling need to rewrite it. If you want to propose (IE - code) a package of changes I'd be willing to consider them.
Oct 23, 2008 at 1:20 AM
no need for a rewrite - just was wondering if I missed anything :)  Not many changes would be required, right?  Just the mapi_multithread_notifications flag & probably use of PostMessage instead of SendMessage from OnNotify to prevent Notification thread from being blocked for arbitrary amounts of time.
Oct 23, 2008 at 2:30 PM
Yep - that's probably where I'd start.