Re: looking for VB program to restart PC
- From: "Michael C" <nospam@xxxxxxxxxx>
- Date: Tue, 20 Jun 2006 18:30:19 +1000
"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
.
- Follow-Ups:
- Re: looking for VB program to restart PC
- From: News
- Re: looking for VB program to restart PC
- References:
- looking for VB program to restart PC
- From: News
- Re: looking for VB program to restart PC
- From: Michael C
- Re: looking for VB program to restart PC
- From: News
- looking for VB program to restart PC
- Prev by Date: Re: looking for VB program to restart PC
- Next by Date: Re: looking for VB program to restart PC
- Previous by thread: Re: looking for VB program to restart PC
- Next by thread: Re: looking for VB program to restart PC
- Index(es):
Relevant Pages
|
Loading