catch logoff event in a service

abc

New member
Joined
May 14, 2007
Messages
3
Programming Experience
Beginner
Hi,

I am currently writing a program, which shall detect
the logoff event of windows.
When the user is logging off, the program shall abort the logoff process and execute some functionalities.
I tried to solve this problem by catching the event
with SessionEndReasons.Logoff, but it doesn't work in a
windows service. If I catch the event in a normal windows
application, windows kills my application anyway.

Could you help me?

Best regards

abc
 

Latest posts

Back
Top