Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1808 connectés 

 


Dernière réponse
Sujet : [c++] Comment fait on pour éteindre le PC à partir d'un programme ?
fucky_fuck Ouais c'étais pour windows, déoloé de n'avoir pas précisé...
Merci beaucoup.

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
fucky_fuck Ouais c'étais pour windows, déoloé de n'avoir pas précisé...
Merci beaucoup.
JosyX sous quel os ?
 
sous win , fonct° de l api win.
 
ex : ExitWindowsEx(EWX_REBOOT , 0)
 
Platforms: Win 95/98, Win NT  
 
ExitWindowsEx shuts down or reboots the user's computer. Of course, since the shutdown/reboot process will begin once the function is called, there won't normally be much left for your program to do. The function returns 0 if an error occured, or 1 if successful.  
 
uFlags
One or more of the following flags specifying how to shut down or reboot the computer:  
EWX_FORCE = 4
Force any applications to quit instead of prompting the user to close them.  
EWX_LOGOFF = 0
Log off the network.  
EWX_POWEROFF = 8
Shut down the system and, if possible, turn the computer off.  
EWX_REBOOT = 2
Perform a full reboot of the system.  
EWX_SHUTDOWN = 1
Shut down the system.  
dwReserved
fucky_fuck Ben voilà, tout est dans le titre ...

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)