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
LVL 1
AndrominosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.