Display the Shut Down Windows Dialog

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
wizzzard

Version Compatibility: Visual Basic 6

More information:
This code uses the SHShutDownDialog API function to bring up the ShutDown Windows dialog. Only most code examples that shutdown/reboot, logoff, this allows the user to confirm whether or not they want to go ahead with the shutdown.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download shutdown.zip