J'étais à la recherche d'une methode pour arreter, mettre en veille ou redémarrer Windows Vista.
Voici le résultat
Arreter le programme
System.Diagnostics.Process.Start("shutdown", "-s -f -t 100") 'Shutdown
Mettre en veille
System.Diagnostics.Process.Start("shutdown", "-l -f -t 100") 'Logoff
Redemarrer
System.Diagnostics.Process.Start("shutdown", "-r -f -t 100") ' Restart