A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Detect logoff/shutdown



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 21st 09, 02:05 PM posted to microsoft.public.outlook.program_addins
j
external usenet poster
 
Posts: 109
Default Detect logoff/shutdown

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.
Ads
  #2  
Old July 21st 09, 03:42 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Detect logoff/shutdown

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.

--
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


"j" wrote in message
...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudden shutdown bill Outlook - General Queries 7 July 11th 09 02:26 PM
Spontaneous OE6 Shutdown vince Outlook Express 24 June 11th 09 09:03 PM
MagicRotation shutdown OE Outlook Express 7 April 11th 07 10:26 AM
Does not exit at Win shutdown Evan Outlook - Installation 1 March 10th 07 08:48 PM
outlook shutdown [email protected] Outlook - General Queries 1 April 26th 06 03:06 AM


All times are GMT +1. The time now is 09:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.