- La fontion :
- Public 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
-
- L'appel :
- ret = InitiateSystemShutdown("\\IP", "Reboot dans 5 s ", 5 , True , True)
-
- Et voila , c'est tout simple et ca peut dépanner ....
-
La fontion :
Public 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
L'appel :
ret = InitiateSystemShutdown("\\IP", "Reboot dans 5 s ", 5 , True , True)
Et voila , c'est tout simple et ca peut dépanner ....