J
jmagaram
i have written a c# .net app that runs in the notification area of the
taskbar. it should stay alive as long as the windows session is alive (like
the volume control or clock in the taskbar). the problem is that my app
closes on Log Off even if the Log Off is aborted. for example, suppose the
user is running Notepad, has a document open with unsaved changes, and then
initiates a Log Off. Notepad pops up a "Save Changes?" dialog; if the user
cancels it Notepad stays running and the Log Off is aborted. But my app is
closed. how can i ensure my app is running as long as the session is alive,
but gracefully shut it down when all other apps have committed to closing?
taskbar. it should stay alive as long as the windows session is alive (like
the volume control or clock in the taskbar). the problem is that my app
closes on Log Off even if the Log Off is aborted. for example, suppose the
user is running Notepad, has a document open with unsaved changes, and then
initiates a Log Off. Notepad pops up a "Save Changes?" dialog; if the user
cancels it Notepad stays running and the Log Off is aborted. But my app is
closed. how can i ensure my app is running as long as the session is alive,
but gracefully shut it down when all other apps have committed to closing?