怎么windows 获取当前连接热点的名字(即SSID)

如何windows 获取当前连接热点的名字(即SSID)
求大侠指点,vs上如何获取当前连接热点的名字(即SSID)信息。
在网上寻觅两天,还没有结果。
------解决方案--------------------
http://bbs.csdn.net/topics/390324517
------解决方案--------------------
用native wifi的api,需要在xp sp2以上才有。
WlanOpenHandle, WlanGetAvailableNetworkList 
------解决方案--------------------
The WlanScan function requests a scan for available networks on the indicated interface.

http://msdn.microsoft.com/en-us/library/ms706783(VS.85).aspx
------解决方案--------------------
http://www.codeproject.com/Articles/21092/WLAN-Scan-with-NDIS-Miniport-and-Much-More