e72b51c5_Basic_NET_Examples_02_03_05_08__1
[0] Restart, Shutdown, Log Off - Windows XP [2] Click Here [3] Click Here [1] 
This uses the Shell-Process class to run certain commandline arguments to Shutdown, Restart or Log Off the Windows XP operating system from your applications. I don't remember where I got the info for the command lines, to give proper credit.
Visual Basic Code Source - Visual Basic.NET Examples 02/03/05/08
1