Re: looking for VB program to restart PC



"News" <Contact_404@xxxxxxxxxxx> wrote in message
news:1150791277.195177.318210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I know but very busy to look for functions
how to test connection and restart PC in VB ?

this will restart the PC I believe:

Private 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

and you can use the Inet control to get a page from the web with
Inet.OpenURL. You might want to check several pages in case the site you're
using is down.

Michael


.



Relevant Pages


Loading