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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enumerate Dialup/Network adapters 1

Status
Not open for further replies.

weevilofdoom

Programmer
Jan 28, 2003
91
US
In C++, what do you think is the best way to get a 'list' of all installed network/dialup adapters. Is there an API call that I'm missing to do this? I just want to get a list of adapters, so I can find the 'selected' one in the registry. Just wondering if there's an easy way to do it, or if I'm overlooking something stupid...

The weevil of doooooooooom
-The eagle may soar, but the weasel never gets sucked up by a jet engine (Anonymous)
 
weevilofdoom,

You need to use the following functions:

WNetOpenEnum
WNetEnumResource

Library to use is mpr.lib and the header is winnetwk.h
 
Thanks a bunch!! Helps immensely!

The weevil of doooooooooom
-The eagle may soar, but the weasel never gets sucked up by a jet engine (Anonymous)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top