Get network name - LAN or WiFi (SSID) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- JD · 2014-04-18 18:27 Hi there everyone, I need to get the network name - LAN or WiFi (SSID) - used by a computer for connecting to the Internet in an application I wrote. I know how to get IP addresses & host name but I don't know how to get the network name. I need all the help I can get. Thanks, JD ---------------------------------------------------------------------- taazz · 2014-04-18 19:42 2 solutions that I know of depending on what need to find 1) http://msdn.microsoft.com/en- us/library/windows/desktop/aa371415%28v=vs.85%29.aspx See if that gives you the info you need, and 2) use WMI to get the information you need http://www.delphipages.com/forum/showthread.php?t=141723 ---------------------------------------------------------------------- JD · 2014-04-19 05:22 @taazz Thanks a lot! I just found this web page http://theroadtodelphi.wordpress.com/2011/04/21/accesing-the-wmi-from- delphi-and-fpc-via-com-without-late-binding-or-wbemscripting_tlb/ I'll be exploring it in depth. However I'll need a similar solution for Linux also. Do you know of a cross-platform way of doing this? I always thought such low level functionality is available in the Free Pascal source units. Am I mistaken or do you know if such units exist? JD ---------------------------------------------------------------------- taazz · 2014-04-19 05:59 1) network names are a very OS specific feature, with no real value in applications other than network managing that is and it is not present in all OS for example I have never heard linux to have such thing you can enumerate the interfaces if you need but it does not attach network names to each interface as windows does that I know of. 2) I have no idea, FPC/lazarus might have something to enumerate interfaces (aka net/wifi cards) but I doubt it has something to retrieve the user friendly name aka network name of an interface.