uh-oh windows mobile threading issues!

Posted by violet313 on Stack Overflow See other posts from Stack Overflow or by violet313
Published on 2010-06-08T15:38:24Z Indexed on 2010/06/08 18:32 UTC
Read the original article Hit count: 282

specifically WM6x, winCE5x

Now my current understanding from trawling the msdn etal is that the IMAPIAdviseSink::OnNotify callback can be made from any old thread; from (ce)mapi or perhaps even from a third-party service provider.

Under WM6x, i cannot seem to coax an in-thread response by invoking HrThisThreadAdviseSink, since while this function is declared in mapiutil.h, a definition appears not to exist (in cemapi.lib or wherever??)

~But i notice that all the OnNotify callbacks i get, derive from windows messages that i am receiving on my thread (=looks to me like an in-thread implementation in any case under cemapi)...

So, can anyone confirm that this is infact always the case -or am i just getting lucky right now?

ah, i should add that my advise source is IMAPISession::Advise (ActiveSync)

erm i should also say that i might have cross-posted this on the msdn forum -but they're mostly numptys over there,,

© Stack Overflow or respective owner

Related posts about c++

Related posts about multithreading