Obtaining currently connected network name (SSID) in C++
I would like to obtain the name (SSID) of the wireless network that the computer is currently connected to. I've looked into the IP Helper API but it seems to have everything but that (DNS servers, IP addresses..). Any help would be appreciated. It's OS dependant, the easiest way may be to just shell out and exec the system's netsh or equivalent and then grep the result eg. on windows 'netsh wlan show int' gives There is 1 interface on the system: Name : Wireless Network Connection Description : Broadcom 802.11g Network Adapter GUID : 1de52c34-2e59-46c4-ae8d-8d442c44dfd Physical address : 00