Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Mon, 30 Jun 2008 12:14:48 -0700 (PDT),    group: microsoft.public.office.developer.com.add_ins        back       


Detect outlook shutdown before inspectors closes   
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
date: Mon, 30 Jun 2008 12:14:48 -0700 (PDT)   author:   Federico Delgado

Re: Detect outlook shutdown before inspectors closes   
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
date: Tue, 1 Jul 2008 09:13:30 -0400   author:   Ken Slovak - [MVP - Outlook]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us