delphi

How can I retrieve the GUID's for the network adapters on my system?


I wrote a simple tool that emulates the *nix "ifconfig -a" in Delphi and posted it here on SO. However, I would also like to be able to retrieve the adapter's GUID as well. Is there a way to do this in Delphi, without using WMI?


Solution

  • check this windows registry key

    HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> WindowsNT -> CurrentVersion- > NetworkCards undear each number see the value of the ServiceName this is the GUID

    enter image description here