How to shutdown a PC with VB6?
This entry was posted
on Sunday, November 8th, 2009 at 4:34 pm and is filed under PC Cheat Codes.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
November 11th, 2009 at 10:59 am
‘ SHUT DOWN IN VB6
Const EWX_LOGOFF As Long = 0
Const EWX_SHUTDOWN As Long = 1
Const EWX_REBOOT As Long = 2
Const EWX_FORCE As Long = 4
‘api reperence declaration
Private Declare Function ExitWindows _
Lib “User32″ Alias “ExitWindowsEx” _
(ByVal dwOptions As Long, ByVal dwReserved As Long) As Long
‘add button to form, if it is pressed shut dow will be called
Private Sub Command1_Click()
‘Shut down windows
ExitWindows EWX_SHUTDOWN, &HFFFFFFFF
End Sub
Quick Payday Loan
November 11th, 2009 at 4:49 pm
vista:
shell “shutdown /f /s /t 1″,vbhide
xp:
shell “shutdown -f -s -t 1″,vbhide
Debt and Consolidation