|
-
October 20th, 1999, 06:19 AM
#1
Check PC is connect to internet in VB6?
Hi, friends
My application is using VB6. How to check if
the PC is connect to internet?
I attempt use Inet or Webbrowser. It seemed they
have no such properties or methods.
Thanks
zys
-
October 20th, 1999, 06:30 AM
#2
Re: Check PC is connect to internet in VB6?
there is an Internetgetconnectedstate api in wininet.dll.
-
October 20th, 1999, 10:39 PM
#3
Re: Check PC is connect to internet in VB6?
Thanks.
I programming here:
Public Declare Function InternetGetConnectedState Lib "wininet.dll" (lpdwFlags
as Long, byval dwReserved as Long) as Boolean
Dim ll as long
Dim ret as Boolean
ret = InternetGetConnectedState(ll, 0)
ret is always False.
and I want to see what value INTERNET_CONNECTION_LAN is.
Msgbox INTERNET_CONNECTION_LAN
it display nothing. Then I try this InternetAttemptConnect(0),
it return nothing too. If I need include some others?
zys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|