Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Determine if Connected To Network/Enumerate through Network Connections.

Posted on 2004-10-28
7
Medium Priority
?
948 Views
Last Modified: 2008-02-01
Hello Experts,

I am using a VB6 app and I want to determine if the user is connected to our company network.  I had hoped to use api calls such as RasEnumConnections or RasGetConnectionStatistics to accomplish this by determining a connection to a known server, but I cannot find sufficient documentation (code samples) to get them to work.  I've already tried Googling, AllAPI.com, and other sites, but as I said, I can't find well documented code that works.

Thanks in advance for your assistance.  Specific code samples would be greatly appreciated.

-Andrew
0
Comment
Question by:Androminos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12436681
if you are connected or a certain user is connected?
0
 
LVL 1

Author Comment

by:Androminos
ID: 12436702
I'd like a program running on user's machine to determine if that user's machine is connected.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12436711
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 48

Accepted Solution

by:
Mikal613 earned 1000 total points
ID: 12436713
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 12436882
Hi
try this to
Enumerate User List and Obtaining User Info

    http://vbnet.mvps.org/index.html?code/network/netuserenum.htm

From this collected list u can easily findout a specified user

;-)
Shiju
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12436964
How To List Servers in 32-bit Visual Basic Using NetServerEnum
http://support.microsoft.com/kb/q198896/
0
 
LVL 1

Author Comment

by:Androminos
ID: 12437173
Thank you to all who have answered and to Mikal613, whose answer I will accept.  As we all know, there is more than one way to skin a cat and in this case I have picked the first way that works and that would be the answer suggested by Mikal613 (using "IsDestinationReachable" api).  It's exactly what I need.  So thank you to shijusn, Erick37--I very much appreciate your input--but I will not have time to research your answers to check for applicability to see if a split-points is in order.  Points go to the early-bird, Mikal613.  Have a great day, all!!

-Androminos
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question