Shut Down Windows

Category:
System/API
Type:
Snippets
Difficulty:
Advanced
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
This routine is a wrapper around the ExitWindowsEx API function. Use one of the Enum Values in the Declarations below as a parameter. If the name of the value has FORCED in it, it will not give other applications a chance to exit normally. Thus, use one of these values with caution.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: