Results 1 to 4 of 4

Thread: get ID of LAN Card?

  1. #1

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    get ID of LAN Card?

    Hi, experts

    How can I get some information about my LAN card?

    this information is important for me. Please tell me how.
    !Have fun!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: get ID of LAN Card?

    Moved from the CodeBank

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: get ID of LAN Card?

    You can use WMI to get information about your network adapter:

    PHP Code:
                ManagementObjectSearcher objQuery = new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration");

                    foreach (
    ManagementObject objMO in objQuery.Get())
                        if ((bool) 
    objMO["IPEnabled"] && objMO["MacAddress"] != null)
                            
    MessageBox.Show ((string) objMO["Description"] + " - " +  (string) objMO["MacAddress"]); 

  4. #4

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: get ID of LAN Card?

    another easier way?

    I dont know exactly a way that use Network namespace to solution this problem.

    Any idea?
    !Have fun!

Posting Permissions

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



Click Here to Expand Forum to Full Width