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 / C++ / MFC
  4. Detect MAC address in C++

Detect MAC address in C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++
6 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.
  • K Offline
    K Offline
    Kogee San
    wrote on last edited by
    #1

    Hello.. Is there anyone here have the code for detecting MAC address in windows XP in C++. Im using Visual C++ 6.0. Thank you

    R 1 Reply Last reply
    0
    • K Kogee San

      Hello.. Is there anyone here have the code for detecting MAC address in windows XP in C++. Im using Visual C++ 6.0. Thank you

      R Offline
      R Offline
      Rajasekharan Vengalil
      wrote on last edited by
      #2

      See GetAdaptersInfo[^] from the IP Helper API[^].

      -- gleat http://blogorama.nerdworks.in[^] --

      K 1 Reply Last reply
      0
      • R Rajasekharan Vengalil

        See GetAdaptersInfo[^] from the IP Helper API[^].

        -- gleat http://blogorama.nerdworks.in[^] --

        K Offline
        K Offline
        Kogee San
        wrote on last edited by
        #3

        GetAdapterInfo requires the iphlpapi.lib/h. It seems that i dont have that lib and header file. I tried to download it separately and i try run the sample program from msdn but it still have all these syntax error which i couldnt understand why it occured (eg: missing ; but i see that there is no problem with the syntax). Currently im using Visual C++ 6.0. Must I upgrade the latest SDK and install the latest Visual C++. The latest is Visual C++ 2005 right? Since im still a student doing my final year project, i found that im kinda slow in this. What are other steps that i could do to upgrade my programming kit and also, is there any code that can provide me a full code to detect MAC address?

        B R 2 Replies Last reply
        0
        • K Kogee San

          GetAdapterInfo requires the iphlpapi.lib/h. It seems that i dont have that lib and header file. I tried to download it separately and i try run the sample program from msdn but it still have all these syntax error which i couldnt understand why it occured (eg: missing ; but i see that there is no problem with the syntax). Currently im using Visual C++ 6.0. Must I upgrade the latest SDK and install the latest Visual C++. The latest is Visual C++ 2005 right? Since im still a student doing my final year project, i found that im kinda slow in this. What are other steps that i could do to upgrade my programming kit and also, is there any code that can provide me a full code to detect MAC address?

          B Offline
          B Offline
          Bram van Kampen
          wrote on last edited by
          #4

          Go to the very FIRST Syntax error, and see how it occurred. There may be a Header Missing, but often you can write your own to get out of a bind. The most common reason with downloaded stuff like that is, incorrect or missing manifest constants, or esoteric looking typedeffed names, ultimately resolving to an int of the correct size. A bit of experimentation is both educational, and often gives less headaches than upgrading the entire SDK. Regards, :)

          Bram van Kampen

          1 Reply Last reply
          0
          • K Kogee San

            GetAdapterInfo requires the iphlpapi.lib/h. It seems that i dont have that lib and header file. I tried to download it separately and i try run the sample program from msdn but it still have all these syntax error which i couldnt understand why it occured (eg: missing ; but i see that there is no problem with the syntax). Currently im using Visual C++ 6.0. Must I upgrade the latest SDK and install the latest Visual C++. The latest is Visual C++ 2005 right? Since im still a student doing my final year project, i found that im kinda slow in this. What are other steps that i could do to upgrade my programming kit and also, is there any code that can provide me a full code to detect MAC address?

            R Offline
            R Offline
            Rajasekharan Vengalil
            wrote on last edited by
            #5

            No you do not need to upgrade from VC++ 6.0 just to use the IP Helper API. And yes the latest Visual C++ production release from Microsoft as of date is Visual C++ 2005. As for the syntax errors you should probably just listen to Bram van Kampen!

            -- gleat http://blogorama.nerdworks.in[^] --

            K 1 Reply Last reply
            0
            • R Rajasekharan Vengalil

              No you do not need to upgrade from VC++ 6.0 just to use the IP Helper API. And yes the latest Visual C++ production release from Microsoft as of date is Visual C++ 2005. As for the syntax errors you should probably just listen to Bram van Kampen!

              -- gleat http://blogorama.nerdworks.in[^] --

              K Offline
              K Offline
              Kogee San
              wrote on last edited by
              #6

              Thanks. I will try my best to solve this problem. Thanks again. Hopefully if i have any problem, you guys can help me right? Really appreciate that. Thanks a lot for the tips.

              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