I noticed that the ExitWindows API function wouldn't restart Windows XP computers, and Shell("shutdown.exe") wouldn't work for older versions of windows, so I coded this program that will restart your computer based upon what OS version you're running. It will also teach you how to read registry keys.
***Keep in mind that the GUI is ugly and since I am running WinXP I'm not fully sure if it will restart older OS's.***