J
Jan Bares
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
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