Easy code to shutdown computer using 32 bit ExitWindowsEx function
Easy code to shutdown computer using 32 bit ExitWindowsEx function
Rate Easy code to shutdown computer using 32 bit ExitWindowsEx function
(1(1 Vote))
Private Declare Function ExitWindowsEx Lib "user32" (Byval uFlags as Long, byval dwreserved as Long)
Private Const FORCE& = 4
Private Const LOGOFF& = 0
Private Const REBOOT& = 2
Private Const SHUTDOWN& = 1
#endif 'WIN32
Private Sub Form_Click
Call ExitWindowsEx(Shutdown Or Force, 0)
'Replace Shutdown with Force or Logoff if wanted
End Sub
Easy code to shutdown computer using 32 bit ExitWindowsEx function Comments
No comments yet — be the first to post one!
Post a Comment