Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Identify non-physical ethernet adapter

Identify non-physical ethernet adapter

Scheduled Pinned Locked Moved C#
csharpsysadminjsonhelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sunil P V
    wrote on last edited by
    #1

    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

    realJSOPR 1 Reply Last reply
    0
    • S Sunil P V

      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

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      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

      H S 2 Replies Last reply
      0
      • realJSOPR realJSOP

        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

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        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.

        S 1 Reply Last reply
        0
        • realJSOPR realJSOP

          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

          S Offline
          S Offline
          Sunil P V
          wrote on last edited by
          #4

          Hi John, I had initially used WMI (system.Management in .net for WMI). But this is not an option because I do not want to use WMI because of issues associated with it. Do you think, that we have any other alternative?

          Sunil

          1 Reply Last reply
          0
          • H Henry Minute

            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.

            S Offline
            S Offline
            Sunil P V
            wrote on last edited by
            #5

            Hi John, Yes the WMI use in .NET has some associated problems. Is there any other alternative???

            Sunil

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups