Hooking up all the item event in one handler?

  • Thread starter Thread starter Anthony Yio
  • Start date Start date
A

Anthony Yio

Hello,

Is it possible to catch all the events done on a pacticular store
(*.pst) in a handler? Like add new contact in the contact folder or update a
task in the task folder. I would like to store all the action done by the
user on the particular *.pst to a log file or text file.

Or, I need to set up the handlers for each of the items. By the way, what
are the event handler for detecting adding new, modify and deletion of task,
mail, calendar and the other item. Where should I look for in the Outlook
Object Model diagram.



thank you.
 
Yes, it's possible. But you'd need an event handler for every event you want
to trap and it would have to be replicated for every folder and so on you
want to monitor. That means setting up classes to handle each Inspector,
Explorer, Items collection and so on that you want to monitor for events.

You can see a VB 6 example of an Explorer wrapper and classes to handle
Explorer events in ItemsCB, which can be downloaded from the Resources page
at www.microeye.com and an example of an Inspector wrapper and classes to
handle Inspector and item events in that Inspector at
http://www.slovaktech.com/code_samples.htm#InspectorWrapper

You'd need similar constructs for every type of collection whose events you
want to handle. You can see all the possible Outlook events in the Object
Browser.
 
thanks

Ken Slovak - said:
Yes, it's possible. But you'd need an event handler for every event you want
to trap and it would have to be replicated for every folder and so on you
want to monitor. That means setting up classes to handle each Inspector,
Explorer, Items collection and so on that you want to monitor for events.

You can see a VB 6 example of an Explorer wrapper and classes to handle
Explorer events in ItemsCB, which can be downloaded from the Resources page
at www.microeye.com and an example of an Inspector wrapper and classes to
handle Inspector and item events in that Inspector at
http://www.slovaktech.com/code_samples.htm#InspectorWrapper

You'd need similar constructs for every type of collection whose events you
want to handle. You can see all the possible Outlook events in the Object
Browser.




update
 
Back
Top