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. Hardware & Devices
  4. NEC MAC Address

NEC MAC Address

Scheduled Pinned Locked Moved Hardware & Devices
csharpwindows-adminhardwarejson
8 Posts 3 Posters 10 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.
  • R Offline
    R Offline
    Reader Man San
    wrote on last edited by
    #1

    :|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.

    May god give u good health and knowledge.

    S L 2 Replies Last reply
    0
    • R Reader Man San

      :|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.

      May god give u good health and knowledge.

      S Offline
      S Offline
      S Douglas
      wrote on last edited by
      #2

      Reader Man San wrote:

      library that can get the NEC MAC address from the Hardware itself not from the registry.

      Have you taken a look at these articles? http://www.codeproject.com/cs/internet/host_info_within_network.asp[^] http://www.codeproject.com/tools/MacIdChanger.asp[^]


      I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

      R 1 Reply Last reply
      0
      • S S Douglas

        Reader Man San wrote:

        library that can get the NEC MAC address from the Hardware itself not from the registry.

        Have you taken a look at these articles? http://www.codeproject.com/cs/internet/host_info_within_network.asp[^] http://www.codeproject.com/tools/MacIdChanger.asp[^]


        I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

        R Offline
        R Offline
        Reader Man San
        wrote on last edited by
        #3

        i read the articles but the code in them gets them from the registry -and that has a possibility of bieng changed- not from the NIC Hardware, which is what i want. but Thanks for reply...;P

        May god give u good health and knowledge.

        S 1 Reply Last reply
        0
        • R Reader Man San

          i read the articles but the code in them gets them from the registry -and that has a possibility of bieng changed- not from the NIC Hardware, which is what i want. but Thanks for reply...;P

          May god give u good health and knowledge.

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          Reader Man San wrote:

          gets them from the registry

          Little bit of hunting around GetAdaptersInfo, seems to be the api call. Still havnet found where it gets its info from. http://www.codeproject.com/internet/IPHelper.asp[^] I suppose the only way to know for sure would be to send a packet to local loop back and interrogate it for the MAC.


          I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

          R 1 Reply Last reply
          0
          • S S Douglas

            Reader Man San wrote:

            gets them from the registry

            Little bit of hunting around GetAdaptersInfo, seems to be the api call. Still havnet found where it gets its info from. http://www.codeproject.com/internet/IPHelper.asp[^] I suppose the only way to know for sure would be to send a packet to local loop back and interrogate it for the MAC.


            I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

            R Offline
            R Offline
            Reader Man San
            wrote on last edited by
            #5

            Thanks, i will need to check it by using programs that change the registry's saved MAC Address. :laugh:

            ___________________________________________ May god give u good health and knowledge.

            1 Reply Last reply
            0
            • R Reader Man San

              :|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.

              May god give u good health and knowledge.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Hmm, how about ShellExecuteEx() with an ipconfig /all command piped into t file that your code then opens and reads the MAC address from. Either that or write an upperlayer driver that has an IOCTL interface which can be opened by your app and sends the query MAC address IOD to the adapter it binds to.

              Truth is the subjection of reality to an individuals perception

              R 1 Reply Last reply
              0
              • L Lost User

                Hmm, how about ShellExecuteEx() with an ipconfig /all command piped into t file that your code then opens and reads the MAC address from. Either that or write an upperlayer driver that has an IOCTL interface which can be opened by your app and sends the query MAC address IOD to the adapter it binds to.

                Truth is the subjection of reality to an individuals perception

                R Offline
                R Offline
                Reader Man San
                wrote on last edited by
                #7

                Thanks for the second idea, i thought about it but i am not good in hardware drivers, they are hard stuff for me.:laugh:

                ___________________________________________ May god give u good health and knowledge.

                L 1 Reply Last reply
                0
                • R Reader Man San

                  Thanks for the second idea, i thought about it but i am not good in hardware drivers, they are hard stuff for me.:laugh:

                  ___________________________________________ May god give u good health and knowledge.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  I can give you source code for such a 'protocol' driver if you like. I takes an IOCTL from an app that opens a particular adapter, than, there is a generic OID handling IOCTL. YOu can set/request any OID with this. It is a complete project, but you will need a DDK, preferably the 2003 server DDK. It has an inf file for installation too.

                  Truth is the subjection of reality to an individuals perception

                  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