Get a notification

I

Igor Smertin

I'm trying to get a notification on type of Inbox notification. I created
AdviseSink object and use Advise() as follows:
Code:

LPMAPIADVISESINK lpAdviseSink = new CMAPITableAdviseSink();

hResult = MsgStore->Advise( cbEntryId, lpEntryId, fnevNewMail |
fnevObjectCreated | fnevObjectDeleted | fnevObjectModified |
fnevObjectMoved| fnevObjectCopied | fnevStatusObjectModified, lpAdviseSink,
&connection);

The operation is sucessfull, but no notification is received. Can anybody
help?
 
D

Dmitry Streblechenko \(MVP\)

Try to get rid of the fnevStatusObjectModified bit.
You code sets up an advise sink on the IMAPIFolder, not on its contents
table. To set an advise sink on the contents table, call
IMAPIFolder::GetContenstTable(), then IMAPITable::Advise()

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top