J
John
Hi,
as title suggests, I want to create a windows service that can be
notified that the computer is shutting down. When it receives this
signal it needs to block for about 10 seconds to write some stuff to a
file before allowing the machine to continue with shutdown (or possible
stop the shutdown if there was an error so that the user can be informed)
I am using Visual Studio.NET 2003 and used the windows service template
that it provided. I see that the template has a 'CanShutdown' property
which means that it should get the shutdown signal when it is
terminating but I don't this this will be anygood for cancelling the
shutdown if need be.
Does anyone know if there is a way to cancel the shutdown without having
to create a window and capturing the WM_QUERYENDSESSION message?
Regards,
John.
as title suggests, I want to create a windows service that can be
notified that the computer is shutting down. When it receives this
signal it needs to block for about 10 seconds to write some stuff to a
file before allowing the machine to continue with shutdown (or possible
stop the shutdown if there was an error so that the user can be informed)
I am using Visual Studio.NET 2003 and used the windows service template
that it provided. I see that the template has a 'CanShutdown' property
which means that it should get the shutdown signal when it is
terminating but I don't this this will be anygood for cancelling the
shutdown if need be.
Does anyone know if there is a way to cancel the shutdown without having
to create a window and capturing the WM_QUERYENDSESSION message?
Regards,
John.