Unlike Windows Vista, when Windows XP is shutting down - it doesn't tell you which program is requesting not to be shutdown. This leaves Windows still running and not telling you what program is preventing shutdown.
As I understand it, Windows sends WM_QUERYENDSESSION
to all applications. If any of the applications return 0 to the function, shutdown is halted.
I am wondering is there a method to capture the return values from programs and determine why Windows XP is not shutting down.
Thanks Phil