I searched everywhere... I did! I just couldn't find any example on **how to** connect to a Wi-Fi on C++.

I found and tried the examples of [WlanGetAvailableNetworkList()](http://msdn.microsoft.com/en-us/library/windows/desktop/ms706749%28v=vs.85%29.aspx) and [WlanQueryInterface()](http://msdn.microsoft.com/en-us/library/windows/desktop/ms706765%28v=vs.85%29.aspx) on MSDN. I also found an [example](http://managedwifi.codeplex.com/SourceControl/changeset/view/41381#WifiExample/WifiExample.cs) of what I'm searching for on C#. Could any one tell me one for **C++**?

Edit: I know nothing about the internet part of C++ (servers, Wifi APIs even not much of Win32 APIs), just the core of the language, I just want to make a **simple** program that finds an open connection and **automatically** connects to it and plays a sound if the connection was successful. If you can provide me with some **info** and **links** I'll do a research and post any solution I can find.