Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Network Connection

Status
Not open for further replies.

madlarry

Programmer
Dec 6, 2000
117
GB
Hi,

Does anyone know how to enumerate the 'Network and Dial-Up Connections' in Win2k? I want to programmatically work out which connection on my PC is currently active (e.g. Local Area Connection 2 or Local Area Connection 3).

I've tried searching MSDN etc but to no avail (not sure exactly what search criteria to use).

I'm sure there are WinAPI calls or something.

Any help greatly appreciated.
 
Check out this FAQ: faq222-287. About 3/4 down the page there is this link: Mapping Network Resources [URL unfurl="true"]http://blackbeltvb.com/free/wnet.htm[/url]

I think this might give you what you need.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top