Hi, Is there anyway to detect that outlook is quitting before it starts closing the inspectors and explorers? Seems that the quit event is triggered after all the inspectors received the close message, Thanks, Federico
Quit would be last, yes. Within the Outlook object model you will most likely get the Explorer.Close() and Inspector.Close() events first, even before an addin would get OnBeginShutdown(). About the only earlier way of telling would bypass the Outlook object model and use a Win32 API hook to handle all messages sent to the Outlook main window, looking for one of the shut down messages. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Federico Delgado" wrote in message news:f262c121-a2c5-4642-8615-6e82960c9d73@m73g2000hsh.googlegroups.com... > Hi, > > Is there anyway to detect that outlook is quitting before it starts > closing the inspectors and explorers? Seems that the quit event is > triggered after all the inspectors received the close message, > > Thanks, > > Federico