I am implementing a COM add-in for Outlook. I am using IDTExtensibility2. I'm not sure if this is the best way to do COM add-ins, but I can't change this.
This interface defines five methods: OnConnection, OnStartupComplete, OnAddInsUpdate, OnBeginShutdown, OnDisconnection.
I need to perform the following operations:
- Loading configuration data from a file
- Download registry data
- Start new session
- Create * .pst file
- Subscribe to Explorer events
- Connect to an Internet server to get some data.
- Creating menu items in the main menu
- Create Toolbar
- Add / remove several things in Outllok (at the * .pst file level)
Please advise what should I do when?
- OnConnection?
- OnStartupComplete?
- OnBeginShutdown/OnDisconnection?