PC Review


Reply
Thread Tools Rate Thread

Detect logoff/shutdown

 
 
j
Guest
Posts: n/a
 
      21st Jul 2009
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.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      21st Jul 2009
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" <(E-Mail Removed)> wrote in message
news:50c92c13-cfac-4d13-a6f2-(E-Mail Removed)...
> 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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown after logoff Jim Brook Windows Vista General Discussion 1 17th Sep 2007 04:36 PM
detect logoff for windows service =?Utf-8?B?amVycnkueHVkZGQ=?= Microsoft C# .NET 0 19th May 2005 10:21 AM
Detect logoff or shutdown Jerry Camel Microsoft VB .NET 1 14th May 2004 10:20 PM
Logoff/shutdown RDB Windows XP Help 3 20th Mar 2004 03:42 AM
pc does not logoff or shutdown Rick Windows XP Hardware 1 14th Aug 2003 04:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 AM.