Api windows

Résolu
phantom_2005 Messages postés 184 Date d'inscription mercredi 8 décembre 2004 Statut Membre Dernière intervention 1 septembre 2010 - 14 déc. 2004 à 16:20
Cramfr Messages postés 160 Date d'inscription mercredi 24 novembre 2004 Statut Membre Dernière intervention 8 juillet 2008 - 14 déc. 2004 à 18:28
qqn sait comment on peut forcer le redémarrage de Win sous W2000??

3 réponses

cs_DARKSIDIOUS Messages postés 15814 Date d'inscription jeudi 8 août 2002 Statut Membre Dernière intervention 4 mars 2013 130
14 déc. 2004 à 17:06
Ah non, au contraire, AbortSystemShutDown stope la procédure de redémarrage !

Pour redémarrer, il faut utiliser la fonction InitiateSystemShutdown :

Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" ( _
ByVal lpMachineName As String, _
ByVal lpMessage As String, _
ByVal dwTimeout As Long, _
ByVal bForceAppsClosed As Long, _
ByVal bRebootAfterShutdown As Long) As Long
_______________________________________

DarK Sidious

[Responsable API/VB du site www.ProgOtoP.com]
Téléchargez ProgOtoP API Viewer
3
Cramfr Messages postés 160 Date d'inscription mercredi 24 novembre 2004 Statut Membre Dernière intervention 8 juillet 2008
14 déc. 2004 à 16:36
Salut

Public Declare Function AbortSystemShutdown Lib "advapi32.dll" Alias "AbortSystemShutdownA" (ByVal lpMachineName As String) As Long

Cramsoturf le VBien en quête de nouveau programme :big)
0
Cramfr Messages postés 160 Date d'inscription mercredi 24 novembre 2004 Statut Membre Dernière intervention 8 juillet 2008
14 déc. 2004 à 18:28
Hoops !dsl
Cramsoturf le VBien en quête de nouveau programme :big)
0
Rejoignez-nous