Programming Recommendations
Consider the following recommendations when designing a custom agent.
-
Be careful with security, because the MAPI session that you're passed has powerful permissions within Microsoft Exchange Server. Be particularly careful when handing control to another element in the system, especially if you are not the creator of that other element.
-
The EventSource object is provided by Microsoft, so to use it, all you need are the proper header files.
-
Do your own exception handling by watching out for exceptions and access violations.