release app, but it seems to be the smallest code ever to reboot a PC on
all versions of Windows.
Edit: Modified to run on ANY language version of Windows now.
Works on Windows 95, 98, ME, 2000 and XP (tested fine on all).
Code: Select all
; WARNING: YOUR PC WILL REBOOT IF YOU RUN THIS CODE!
Procedure Reboot()
fg=GetForegroundWindow_()
Repeat : Sleep_(1) : Until GetForegroundWindow_()<>fg
keybd_event_(#VK_RETURN,0,0,0)
EndProcedure
CreateThread(@Reboot(),0)
SetupPromptReboot_(0,0,0)


