From: Arno Garrels on
Hi,

Has anybody got that running in Vista RC1 yet?
I get an error in the eventlog saying that the service
did not shutdown correctly after receiving
SERVICE_CONTROL_PRESHUTDOWN. PreShutdownTimeout is set
to 190,000 milliseconds. In HandlerEx I return NO_ERROR
and post the controlcode to my service thread.
The handler of this message is the same as for
SERVICE_CONTROL_SHUTDOWN, it sets the status to
SERVICE_STOP_PENDING, the it loops around reporting the status
within current WaitHint for testing purposes. It should
block system shutdown until preshutdown time-out interval
expires. But the system shuts down after ~30 seconds
regardless of what I'm trying, WaitToKillServiceTimeout
defaults to 20 seconds. Any idea?

Arno Garrels