Getting Network Interface name from GUID

June 15th, 2008 - 05:58 pm ET by Bartosz DoleÅ› Dolewski | Report spam
Hi all,
I`m writting a network monitor using Qt 4.3 library. I`m using some classes
like a QNetworkInterface QAddressEntry etc. My program runs correctly on
Unix and I get names of interface like "eth0" or "lo". But in Qt
documentation there is a description:
"QString QNetworkInterface::name () const
Returns the name of this network interface. On Unix systems, this is a
string containing the type of the interface and optionally a sequence
number, such as "eth0", "lo" or "pcn0". On Windows, it's an internal ID
that cannot be changed by the user."

I was searching in web about this ID and i realised that it is GUID. In my
Windows XP registry I found this numbers and there are names of interfaces.
My question is: How can I get name of network connection when i have its
GUID ? I was looking at MSDN but i didn`t find nothing :( (something like a
readFromGuid or class GUID, or whatever).

Thanks for help, regards
Bartek
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Thorsten Albers
June 15th, 2008 - 07:00 pm ET | Report spam
DoleÅ› Dolewski schrieb im Beitrag
<g3434u$4m$...
I`m writting a network monitor using Qt 4.3 library. I`m using some


classes
like a QNetworkInterface QAddressEntry etc. My program runs correctly on
Unix and I get names of interface like "eth0" or "lo". But in Qt
documentation there is a description:



Are you sure that your program is written in >>VB 6.0<<? I've never heard
of an implementation of the QT libraries for VB 6.0...

-
Thorsten Albers albers(a)uni-freiburg.de
-

Similar topics