You should learn to find answers to your question by using the VisualStudio help.

In Visual Studio 6.0, goto menu help->search..
In the MSDN search dialogbox, click on the "Contents" tab. Go to
-->Platform SDK->Reference->Win32 functions by category->System shut down functions. And there you can find all you need to shut down the system.


I hate fat programs as much as I hate being fat myself. I am lean and mean and so is my program.