Re: SetConsoleCtrlHandler
- From: "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 16:16:41 -0400
"Steve Lawrence" <sl516720@xxxxxxx> wrote in message
news:99023D0F-0BFA-4DFA-A71F-CCD11F4F7B9E@xxxxxxxxxxxxxxxx
Dear Microsoft Support,
I have posted this problem to the W2K migration newsgroup and they
recommended I post it here instead. I hope this is the correct place. It
is
concerning a difference in results when using the above API.
My company has a customer who is attempting to run a package we released
on
NT 4 Server years ago now on a W2K Server. We stopped supporting the
package
some time ago, but told them we would make our best efforts to help them
with
no promises. The reason for this OS move is the fact that their hardware
supplier can no longer provide NT 4 compliant hardware.
The customer carried out testing successfully on W2K and installed it in a
live site. On the first day the application started shutting itself down.
Eventually it was traced down to the fact that it was shutting down when
the
console logged off. The customer stopped users from logging off on the
console and asked me what the problem was.
I obtained the source from our home office in the US (I'm in the UK.) for
examination. When the application starts up to uses the API
SetConsoleCtrlHandler and when this event is received, it shuts down. On
NT 4
Server this event is never triggered and the program is not effected. On
W2K
the event is triggered and the program initiates a shutdown.
What is the difference between W2K in NT in this area. Our ideal solution
would be to change a setting in the OS. This is because I'm not sure I
have
all the proper libraries, etc. to trust a recompile and ignore this event.
The person who put in the event handler is also not available to query why
it
was done this way in the first place.
I don't know of any condition under which the console handler will
initiate a system shutdown. All I can think of is that the program must be
causing a fatal error in csrss.exe. If csrss.exe terminates, the system
will shutdown because csrss.exe is considered to be a vital component of the
OS. If so, the only way of fixing the problem is to fix the program.
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
.
- Prev by Date: Re: FlushViewOfFile
- Next by Date: Re: SetConsoleCtrlHandler
- Previous by thread: FlushViewOfFile
- Next by thread: Re: SetConsoleCtrlHandler
- Index(es):
Relevant Pages
|