24/04/2024
Windev et les Api Windows
Nb de visiteurs en ligne : 1
>> Introduction <<
>> Codes et Forum <<
>> Download <<
Rubrique
: 1 - Windows Général
Sujet
: Arrêter / Redémarrer Windows (W95/98)
Auteur
Message
°¨¨ JL ¨¨°
Posté le : 23/06/2000 12:00:00
// Pour arrêter l'ordinateur (W95 & W98) :
appeldll32("user32","ExitWindowsEx",1,0)
// Pour redémarrer l'ordinateur (W95 & W98) :
appeldll32("user32","ExitWindowsEx",2,0)
// Pour déconnecter l'utilisateur (avec confirmation ) :
SendMessage( appeldll32("user32","FindWindowA", "Shell_TrayWnd" , NULL) , 0x111 , 402 , 0)
// Pour afficher la boite d'arrêt de windows :
SendMessage( appeldll32("user32","FindWindowA", "Shell_TrayWnd" , NULL) , 0x111 , 506 , 0)
// Pour mettre l'ordinateur en mode veille :
SendMessage( appeldll32("user32","FindWindowA", "Shell_TrayWnd" , NULL) , 0x111 , 409 , 0)