Dorm cell phone Even wifi always use the browser to log in to Unicom's WLAN landing page, helpless mobile phone too much memory only 512M, open a Web page and then do other things on the card, so decisively downloaded a WiFi sharing wizard. Use once to be decisive unload, why. There is advertising, can't stand ah. Just learning VC + + forget to do one yourself.
About Wireless hosted networks
A wireless hosted network (Wireless hosted network) is a WLAN feature provided by Windows 7 and Windows Server 2008 R2 with Wireless LAN services, with two main features:
First, a physical wireless network card is virtualized into one or more virtual wireless network cards, called Virtual WiFi.
Second, the use of wireless network card to connect the current virtual into a software based wireless access point, called virtual AP or soft AP.
========================= the evils of the dividing line ===========================
Project needs to include wlanapi.h header files and wlanapi.lib libraries
Note: The test environment win7_64, it is recommended to close some security software (for example, I forgot to turn off when I tested Comodo cause the firewall always rejects the connection of other devices).
=============================================================
function is not complex, the main function to use the following several
1. Call wlanopenhandled to get a connection hclienthandle, the following operation to use this connection. Of course when the program exits, remember to call Wlanclosehandle to close this connection.
01 |
DWORD WINAPI Wlanopenhandle ( |
02 |
_in_ DWORD Dwclientversion, |
03 |
_reserved_ Pvoid Preserved, |
04 |
_out_ Pdword Pdwnegotiatedversion, |
05 |
_out_ Phandle Phclienthandle |