Link to home
Start Free TrialLog in
Avatar of mappemuppe
mappemuppe

asked on

Event-handler for a service application

How to write an event-handler for a service application. Event = User Logoff and System Shutdown.

I want my service application to do something when a user logoff or shutdown the system.
Avatar of mullet_attack
mullet_attack

use this api function

SetConsoleCtrlHandler
 
ASKER CERTIFIED SOLUTION
Avatar of mullet_attack
mullet_attack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mappemuppe

ASKER

Thanks that was just what I needed.