windows # Come uscire da windows dalla propria applicazione
Dichiarazione per ExitWindowsEx: Public Const EWX_LOGOFF = 0 Public Const EWX_SHUTDOWN = 1 Public Const EWX_REBOOT = 2 Public Const EWX_FORCE = 4 Declare Function ExitWindowsEx Lib "user32" Alias _ "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved _As Long) As Long Per ottenere il reboot: VarRit = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0) |