Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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,108 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,108 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,108 Views)