When I call the function, my computer reboots, but myCode:ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0
Desktop icons are rearranged and I have to do Active Desktop
Recovery for my active desktop.
Anyone know what is wrong?
Printable View
When I call the function, my computer reboots, but myCode:ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0
Desktop icons are rearranged and I have to do Active Desktop
Recovery for my active desktop.
Anyone know what is wrong?
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.
Code:ExitWindowsEx EWX_REBOOT, 0