Arréter windows
- Code : Tout sélectionner
(Déclarations)
Declare Function ExitWindows Lib "User32" Alias "ExitWindowsEx" (Byval
dwOptions As Long, Byval dwReserved As Long) As Long
Code
EWX_LogOff = 0
EWX_SHUTDOWN = 1
EWX_REBOOT = 2
ExitWindows EWX_SHUTDOWN, &HFFFFFFFF