0

Other similar question mostly target Windows XP, where everything was easier. =)

I'd like my application to be able to postpone the windows shutdown transparently, without having windows show this screen:

windows 7 shutdown screen

Is there any option left to me after the Vista changes to the WM_QUERYENDSESSION handling?

The target here is Windows 7 standard embedded on an embedded device that runs only my application. Before shutting down the user needs to perform some manual steps that can not be postponed until the next start and must not be forgotten. I'd like to have the user confirm these steps before shutting down.

Jens
  • 25,229
  • 9
  • 75
  • 117
  • Re: "Before shutting down the user needs to perform some manual steps" - Why not make those manual steps an automatic part of application exit? Having software do things for you automatically is kind of the entire point of software in the first place. Not to mention that if I have already decided to shut down the computer it most likely that means I want your app to go away as soon as possible. – In silico Dec 19 '11 at 08:39
  • Thanks for the input! The manual steps are not something the software can do. Its something like cleaning the instrument, replacing certain bottles etc. This is not software for a "normal" computer, but for an embedded device and the user has no prior expectations about what the power button should or should not do. – Jens Dec 19 '11 at 08:46
  • I see. In that case, I wouldn't worry about it. The "remember to clean the instrument" problem is best solved by user training/education, not by software. Not everything is solved best via a computer. – In silico Dec 19 '11 at 08:49
  • Hehe, true. But a I still would like to remind the user as strongly as possible to not damage a rather expensive piece of labratory equipment. =) – Jens Dec 19 '11 at 08:52
  • Right. I've worked in a lab with plenty of expensive equipment, so I know exactly what you're talking about. But the solution my university used is to simply put a big post-it note next to the power button reminding people to maintain it properly. :-) – In silico Dec 19 '11 at 08:55
  • I think Jens's concern is valid. If he has a chance to also warn the user via software, why not use it? That's what user-friendliness is all about. – Mike Nakis Dec 19 '11 at 09:02

1 Answers1

2

I've come to the conclusion, that there is no way to do this. =/

The workaround I've found is to allow shutdown only via the software at opportune moments. The start menu or task manager is not available to the user, and the hardware power button behavior can be configured to do nothing in the systems power options.

Jens
  • 25,229
  • 9
  • 75
  • 117