Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Determining a connection type.

Posted on 2002-05-17
1
Medium Priority
?
212 Views
Last Modified: 2010-04-02
I have a client application that runs under WindowsNT, 95, 98, 2000, XP. I need to be able to determine if the client is attempting to connect to the Server over a PPP dialup connection, VPN connection or LAN connection.

I am using MS Visual C++ 6.0.

0
Comment
Question by:dhymes
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 150 total points
ID: 7016587
'InternetGetConnectedState()' can do that - however, it is not able to detect a VPN connection. See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q242558 ("HOWTO: Detecting If You Have a Connection to the Internet (Q242558)")
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

916 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