does anybody know how to reboot windows (95/98)?
(for example when the ok-button is pressed...)
thanks in advance
Printable View
does anybody know how to reboot windows (95/98)?
(for example when the ok-button is pressed...)
thanks in advance
I think it is: ExitWindowsEx( EXW_SHUTDOWN,0);
That prompts the user to shut down, but if you want to close all programs and not prompt the user, use: ExitWindowsEx( EXW_SHUTDOWN | EXW_FORCE,0);
That actually shuts down the computer, to reboot computer you should use EWX_REBOOT instead of EWX_SHUTDOWN