Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Log Off with Windows Service 1

Status
Not open for further replies.

mander23

MIS
Jan 30, 2005
28
US
Is there a way to capture or hook the Log Off event? I want to run a windows service and perform code when the user logs off the computer. Thank you
 
Occurs when the user is trying to log off or shutdown the system. Microsoft.Win32.SystemEvents.SessionEnding

Maybe this world is another planet’s Hell.
Aldous Huxley

eyes_015.gif___1129027102664
eyes_015.gif___1129027102664
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top