CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: get MAC Address

  1. #1
    Join Date
    Mar 2008

    Question get MAC Address

    how to get mac address of the system.

    my OS is linux fedora.

    i have done it already in java but i don't know how to get MAC ADDress with C++.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  2. #2
    Join Date
    Jan 2004
    Düsseldorf, Germany

    Re: get MAC Address

    ioctl is your friend.

    Search for SIOCGIFHWADDR, I think that's what the parameter is called that you want.
    More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf

    Premature optimization is the root of all evil --Donald E. Knuth

    Please read Information on posting before posting, especially the info on using [code] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)