|
-
Feb 2nd, 2004, 09:04 PM
#1
Thread Starter
Frenzied Member
[VB] ForceComputerToShutdown
Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Const EWX_SHUTDOWN = 1
Const EWX_FORCE = 4
Sub ForceComputerToShutdown()
On Error Resume Next
Call ExitWindowsEx(EWX_SHUTDOWN Or EWX_FORCE, 0)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|