Restart Windows using ExitWindowsEx API Call.
Restart Windows using ExitWindowsEx API Call.
API Declarations
Const EWX_REBOOT = 2
Const EWX_LOGOFF = 0
Const EWX_FORCE = 4
Private Declare Function ExitWindowsEx Lib "user32" _
(ByVal uFlags As Long, _
ByVal dwReserved As Long) _
As Long
Rate Restart Windows using ExitWindowsEx API Call.
(1(1 Vote))
Private Sub cmdRestart_Click()
'Restart Windows (works on Windows 95/NT)
ExitWindowsEx EWX_LOGOFF, 0
End Sub
Restart Windows using ExitWindowsEx API Call. Comments
No comments yet — be the first to post one!
Post a Comment