Managed Code Restart

  • Thread starter Thread starter John Bowman
  • Start date Start date
J

John Bowman

Hi All,

I need to have my app restart the PC after the user makes some parameter
changes. I've been looking around but can't find an answer in the doc's yet.
Is there some managed method on a class somewhere in the framework (1.1? or
2.0?) to do this, or do I need to use the Win32API to force a reboot?

TIA,
 
Don't do that!
That (rightfully) irk the user.
And is inacceptable on running servers.

Anyway, if you really want to go this (wrong) way, yes, you've got to use
some win32 call, such as "ExitWindowsEx"
 
Lloyd,

Thanks, I kind of figured I had to do use win32, but wasn't certain and
could find anything in the framework.

BTW, servers are not part of the picture and the app is a software suite
installation process that among other things installs hardware device
drivers for custom, specialized hardware and therefore requires reboot. The
users of this software suite will expect this sort of thing during system
setup. I don't think you understood enough about the inherent nature of the
app. and were rather prematurely judgemental. So, no it's not "wrong"... it
is required and no, users will not be "irked" as you presumed.

John
 
John Bowman said:
Hi All,

I need to have my app restart the PC after the user makes some parameter
changes. I've been looking around but can't find an answer in the doc's yet.
Is there some managed method on a class somewhere in the framework (1.1? or
2.0?) to do this, or do I need to use the Win32API to force a reboot?
....

Check:
http://www.mentalis.org/soft/class.qpx?id=7

Regards,
Goran
 
Back
Top