Identify non-physical ethernet adapter
-
Hi Gurus, I need to identify if a network interface card (specifically ethernet) is physical or non-physical? I use the "NetworkInterface" class to enumerate the network cards. However, in my system there is one LAN adapter that is present and is not physical. This doesnt show up as a virtual adapter also. Is there any API in .NET which can help to identify if a device is actually present in the machine or not??? Thanks in advance.
Sunil
-
Hi Gurus, I need to identify if a network interface card (specifically ethernet) is physical or non-physical? I use the "NetworkInterface" class to enumerate the network cards. However, in my system there is one LAN adapter that is present and is not physical. This doesnt show up as a virtual adapter also. Is there any API in .NET which can help to identify if a device is actually present in the machine or not??? Thanks in advance.
Sunil
I assume you're talking about an adapter in a virtual machine. I found a utility on the net (with C# source code) that thoroughly examined the WMI database., but I can't remember where or what the name is. If I were you, I would google for "c# wmi" and see what kind of hits I get back. You could then use that utility to explore the networking stuff.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
I assume you're talking about an adapter in a virtual machine. I found a utility on the net (with C# source code) that thoroughly examined the WMI database., but I can't remember where or what the name is. If I were you, I would google for "c# wmi" and see what kind of hits I get back. You could then use that utility to explore the networking stuff.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001Was this the one? WMI Interface for .NET[^]
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” Why do programmers often confuse Halloween and Christmas? Because 31 Oct = 25 Dec.
-
I assume you're talking about an adapter in a virtual machine. I found a utility on the net (with C# source code) that thoroughly examined the WMI database., but I can't remember where or what the name is. If I were you, I would google for "c# wmi" and see what kind of hits I get back. You could then use that utility to explore the networking stuff.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
Was this the one? WMI Interface for .NET[^]
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” Why do programmers often confuse Halloween and Christmas? Because 31 Oct = 25 Dec.