473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

getting Network Interface Card(NIC) names.. question.

Hi,

I've got 3 Network Interface Cards(NIC) in my PC. Lets say NIC1, NIC2, NIC3.
I have openend network connections in control panel and renamed them to
Network 1, Network 2, Network 3.

I'm trying to get these names( Network 1, Network 2, Network 3) by using C#.
When I tried using Win32_NetworkAdapterConfiguration class, I could get the
names of the actual hardware(NIC1, NIC2, NIC3) but not the renamed names
(Network 1, Network 2, Network 3).

Is there any way we can get these names programmatically?
please let me know.

Cheers,

Naveen.
Nov 17 '05 #1
1 2920
No you can't use WMI for this, the names on the UI have nothing to do with
WMI configuration data, the names are stored in the registry under
HKLM\System\Controlset001\control\network

Willy.

"Naveen Mukkelli" <Na************@discussions.microsoft.com> wrote in
message news:F5**********************************@microsof t.com...
Hi,

I've got 3 Network Interface Cards(NIC) in my PC. Lets say NIC1, NIC2,
NIC3.
I have openend network connections in control panel and renamed them to
Network 1, Network 2, Network 3.

I'm trying to get these names( Network 1, Network 2, Network 3) by using
C#.
When I tried using Win32_NetworkAdapterConfiguration class, I could get
the
names of the actual hardware(NIC1, NIC2, NIC3) but not the renamed names
(Network 1, Network 2, Network 3).

Is there any way we can get these names programmatically?
please let me know.

Cheers,

Naveen.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: craig | last post by:
I have a quick question regarding the use of interfaces... Assume I have a class A that needs to interact with another class B. Classes A nd B are in different assemblies. Now, in order to...
13
by: John Salerno | last post by:
Hi all. I have a question about interfaces now. According to the book I'm reading, when you implement an interface, the class or structure has to declare all the methods that the interface...
1
by: SStory | last post by:
I am doing the following with my MDI app.. Please advise if I am going about this wrong or there is a better way. I thought, well, the main form needs to be able to ask the child form if it...
5
by: Colin McGuire | last post by:
Hi all, when I write the class below Private Class employee End Class and then add the line "Implements IVF" which is an interface I have written, the IDE modifies my code to display
9
by: Chris Dunaway | last post by:
I have created an Interface called IClientModule in a class libarary and have compiled the library to a .dll. In my main app, I scan a folder for .dll's and load each one that implements the...
5
by: Eric | last post by:
Hi, I am kind of new to OO and I have the following problem : I have a class containing a huge list of functions for accessing an SQL database. Public Class Transaction #region "Client"...
10
by: stwebmail | last post by:
If you are dealing with one PCI card, is there a way (from within a dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6, etc.)? It doesn't matter if the solution is MFC, or...
2
by: psandler70 | last post by:
All, This might be a stupid question. When defining an interface, is it possible to force the class that implements it to support a property/method with the same name, but not force a...
6
by: jason | last post by:
I found the below example online, while trying to under Interfaces. In layman's terms, can somebody explain what the purpose of this line is: void SportCharacteristics(); //LOCATED IN THE...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.