Detect logoff/shutdown

Status
Not open for further replies.
J

j

Hi,

I'm developing shared AddIn for Outlook 2003, C# 2.0.

i catch the system's logoff/shutdown occurence.

i tried to use diferent events from but

Microsoft.Win32.

SystemEvents. ....

they are not fired.

any suggesiotn.
 
K

Ken Slovak - [MVP - Outlook]

In an addin for Outlook 2003 you should be handling OnDisconnection() anyway

from the Extensibility interface. In addition, for 2003 and earlier you need

to handle Explorer.Close() and Inspector.Close() and if in either of those 2

event handlers there are no more Explorers and no Inspectors then you

release all of your Outlook objects so that OnDisconnection() can fire. You

also should have a OnBeginShutdown() handler of course for the Extensibility

interface.

I handle both of those Extensibility interface events plus the 2 Close()

events and from there call my teardown code.

"j" <Evgeny.Br@gmail.com> wrote in message

news:50c92c13-cfac-4d13-a6f2-bc2d71e486c5@k19g2000yqn.googlegroups.com...
> Hi,

> I'm developing shared AddIn for Outlook 2003, C# 2.0.

> i catch the system's logoff/shutdown occurence.
> i tried to use diferent events from but
> Microsoft.Win32.

> SystemEvents. ....
> they are not fired.

> any suggesiotn.
 
Status
Not open for further replies.
Top