2009-01-20, 07:30 PM
(This post was last modified: 2009-01-26, 11:13 AM by keith_leitch.)
Mister Slimm Wrote:XP SP3, oh. This tweak almost certainly won't make any difference.
The automatic delayed shutdown is still there, nothing has changed for years, but I last ran XP with SP2 a couple of years ago. I had tremendous difficulty getting the feature to work in the first place as Microsoft's documentation seemed to be rather at odds with what was happening in front of my eyes.
I am also confused as to why Slimm GBPVR only intercepts some sleep requests. All the utilities should use the same library commands: SetSuspendState to put the machine into standby (sleep) or hibernate and ExitWindowsEx to log off, shutdown or restart. You'd have thought that either they all can be intercepted or they all can't be. I don't get it at all and Microsoft have made it a moot point by removing the PBT_APMQUERYSUSPEND message and adding Away Mode from Vista onwards.
Other people and programs have had this problem also and it seems to stem from some changes in .NET 2.0 which were probably related to the change of behaviour in Vista.
I have no plans to add shutdown options to the command line.
Setting your machine to sleep when idle and learning never to switch the machine off manually may be the way to go.
I will test your patch later anyway, but we should put out an appeal for someone running Vista to also do so. Let's get to the bottom of this.