VB 6.0 Make a shutdown, restart, logout program

A quick tutorial on how to make a program that can log you out, restart your computer and shut it down, you can use this as a system control thing, or you can make a prank out of this so that it will shut your friends computers down or whatever. Sorry that there is no sound, my mic broke ages ago and I’ve been meaning to get a new one. Remember this NEEDS Visual Basic 6.0 but I tried this on .NET and it worked also.