Here is a little project I made that allows you to run the program and show the classic windows shutdown dialog that we all used to know. anyway, you need to reference shell32.dll to work anyway here is the source code comments welcome if you like this let me know.

Download Source Code

ShutdownXE.zip