devi usare le API.
In un modulo generale:
èpoi per fare la disconnessione:codice:Public Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Const EWX_LOGOFF = 0 Const EWX_SHUTDOWN = 1 Const EWX_REBOOT = 2 Const EWX_FORCE = 4
codice:ret& = ExitWindowsEx(EWX_LOGOFF, 0)![]()