By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,668 Members | 1,606 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,668 IT Pros & Developers. It's quick & easy.

reboot

P: n/a
Hi,

Does somebody have an example of source code to reboot the machine (WinXP) ?

Thanks,
Dmitri
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Dmitri,

One option is that you could PInvoke to the ExitWindowsEx
API. I guess you could also use WMI to do this.
http://www.c-sharpcorner.com/3/Reboo...WithWMIJOD.asp

Regards,
Aravind C
"Dmitri Shvetsov" <ds*******@cox.net> wrote in message
news:9UJUb.32693$P17.30125@fed1read03...
Hi,

Does somebody have an example of source code to reboot the machine (WinXP) ?
Thanks,
Dmitri

Nov 15 '05 #2

P: n/a
Please try-

http://www.c-sharpcorner.com/3/Reboo...WithWMIJOD.asp

=================
Manish Agarwal
ma************@mphasis.com
"Dmitri Shvetsov" <ds*******@cox.net> wrote in message
news:9UJUb.32693$P17.30125@fed1read03...
Hi,

Does somebody have an example of source code to reboot the machine (WinXP) ?
Thanks,
Dmitri

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.