Re: Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders
- From: "juan" <juan_richeri@xxxxxxxxxxx>
- Date: 17 Aug 2006 06:20:55 -0700
Thanks ken, just for information, I rewrote my implementation
using extended mapi:
hr=HrAllocAdviseSink((LPNOTIFCALLBACK)SinkCallback,(void*)this,&Sink);
if( hr ) return false;
hr = m_lpMDB->Advise((ULONG)0, (LPENTRYID)NULL,
fnevObjectCreated|fnevObjectCopied|fnevObjectMoved,
Sink, &ulConnection);
Ken Slovak - [MVP - Outlook] ha escrito:
Nope, that's it.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"juan" <juan_richeri@xxxxxxxxxxx> wrote in message
news:1155561896.851424.121380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi!
I wrote an application in C++ that uses Outlook::ItemsEvents ItemAdd
event
to detect when an item is moved from ANY folder to ANY another folder.
So what I do is to traverse all folders and for each one I add this
event...
Problem is that if I have for example 3000 folders, then Outlook
startup
and Outlook shutdown will take several minutes....
Is there any other way to detect when the user is moving one email from
one
subfolder to another? I just need the target folder EntryID and the
sender......
Thanks
.
- References:
- Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders
- From: juan
- Re: Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders
- From: Ken Slovak - [MVP - Outlook]
- Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders
- Prev by Date: Re: add-in for word 2003
- Next by Date: get_MAPIOBJECT returns 0x30567300
- Previous by thread: Re: Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders
- Next by thread: Re: Outlook Notifications
- Index(es):
Relevant Pages
|