service and SetConsoleCtrlHandler
From: Jan Bares (jan.bares_at_nospam.nospam)
Date: 10/04/04
- Next message: wraith: "Managed C++ with DirectX"
- Previous message: William DePalo [MVP VC++]: "Re: Designing an ISAPI Filter"
- Next in thread: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Reply: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Reply: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 4 Oct 2004 17:47:07 +0200
Hi,
on my Win2k I have a service running. Inside the service start code I use
SetConsoleCtrlHandler() (this is because the service can also be started as
console process for debugging). I realized that my service is shutdown in
some random time (~hours) due to call to HandlerRoutine() routine. I would
like to know how this can happen. I don't suspect that Windows is sending
Ctrl-C to my service at random time...which program can do that?
Aha, just now I realized, that Windows is most probably calling Ctrl-C to
the console when I log off. It seems like all consoles will get Ctrl-C
during log off...comments?
Jan
- Next message: wraith: "Managed C++ with DirectX"
- Previous message: William DePalo [MVP VC++]: "Re: Designing an ISAPI Filter"
- Next in thread: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Reply: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Reply: Gary Chang: "RE: service and SetConsoleCtrlHandler"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|