[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 957
  • Last Modified:

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

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
Androminos
Asked:
Androminos
1 Solution
 
Mikal613Commented:
if you are connected or a certain user is connected?
0
 
AndrominosAuthor Commented:
I'd like a program running on user's machine to determine if that user's machine is connected.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Shiju SasidharanAssoc Project ManagerCommented:
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
 
Erick37Commented:
How To List Servers in 32-bit Visual Basic Using NetServerEnum
http://support.microsoft.com/kb/q198896/
0
 
AndrominosAuthor Commented:
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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now