CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Check PC is connect to internet in VB6?

    there is an Internetgetconnectedstate api in wininet.dll.


  3. #3
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured