I've been learning c++ since september and all ive been doing is writing dumb programs that calculate interest and stuff like but now. Ive been so curious to find out. How do i write a program that can restart your computer once launched, or log it off, or even change the windows registery. I only want to learn this for educational purposes im leaning to computer system admin soon so i want to be able to do some of this kind of programming. If any one can show me some source code or even a good tutorial about how you can do this, i would greatly appreciate it.