VC + + win7 implementation of WiFi sharing tool with source code (wireless host network)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.