ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to shutdown WinXP

I want to shutdown WinXP.
In win9x and WinNT is this done by ExitWindowsEx in the user32.dll but this doesn't work in WinXP.
0 Kudos
Message 1 of 3
(3,104 Views)
Try some of the stuff mentioned here or here.
They talk about ExitWindowsEx but go on from there to other methods that work with Windows 2000. If it works with Windows 2000, it might work with XP.
Message 2 of 3
(3,104 Views)
Try this VI. It uses the ExitWindowsEx, but passing value "PowerOff" instead of "Shutdown". This completely powers off the PC. It works fine on W2K.
Message 3 of 3
(3,104 Views)