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.
 
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.
Similar threads
Thread starter Title Forum Replies Date
J Transport Rule to detect Keyword question.. Exchange Server Administration 2
G Detect Google Drive and OneDrive links in incoming mail Outlook VBA and Custom Forms 3
T VBA outlook, detect priority emails Outlook VBA and Custom Forms 5
20 Ton Squirrel Detect Application_Startup event completion Outlook VBA and Custom Forms 1
M Outlook 2003 rule to detect a blank category Using Outlook 1
G detect if a mail is read in a public folder Outlook VBA and Custom Forms 14
M Another way to detect if email read? Outlook VBA and Custom Forms 6
M how to detect duplicate email messages? Using Outlook 5
A how to detect email is saved to draft? Outlook VBA and Custom Forms 3
H How to get BCM in OUtlook 2007 on Vista to detect my MDF file? BCM (Business Contact Manager) 1
M CDO hanging on Logoff Outlook VBA and Custom Forms 4
B Outlook 2016 Does not Shutdown Correctly Using Outlook 3
Jennifer Murphy Error message on shutdown Using Outlook 1
Fozzie Bear Outlook 2010 wont remember Exchange Credentials on log off /shutdown of Win7 Exchange Server Administration 2
S Out of Office message and Outlook 2003 shutdown Using Outlook 1
P Opening Calendar Foreces Shutdown Using Outlook 1
T Outlook 2003 with multiple explorers won't shutdown Outlook VBA and Custom Forms 2
R destroying Explorer object pointers on shutdown Outlook VBA and Custom Forms 2

Similar threads

Back
Top