PDA

Click to See Complete Forum and Search --> : Using ExitWindowsEx


wey97
Dec 5th, 2000, 07:25 AM
ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0

When I call the function, my computer reboots, but my
Desktop icons are rearranged and I have to do Active Desktop
Recovery for my active desktop.

Anyone know what is wrong?

Dec 5th, 2000, 07:42 AM
ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0

That is because EWX_FORCE will shut/reboot the computer down/up and will not save any work. It will be forced to shut down/boot up.

Try it without EWX_FORCE.

ExitWindowsEx EWX_REBOOT, 0