Tutorial for WiFi Programming in C++

Hi,

I am a beginner in WiFi programming. Need to know the starting point if there is a tutorial available. MSDN library is very superficial and does not have any samples etc.

I have installed VC++ 2005,http://support.microsoft.com/kb/918997 patch for XP.

"I coud not locate the wlanapi.h, wlanapi.lib files in the usual visual studio folders even after installing the above on windows XP.

I want to write programs that are supported in both XP and Vista. I found the following info

The Wireless Zero Configuration programming interface is available for use in Windows XP SP2. In Windows Vista and Windows Server 2008, these APIs are not supported. TheNative Wifi API provides similar functionality in Windows Vista and Windows Server 2008. Wireless LAN API for Windows XP SP2 provides similar functionality for Windows XP SP2. For more information, seeAbout the Native Wifi API. Use the Native Wifi API whenever possible.]

What is the right way to go about. The above seem quite confusing

Thanks in Advance for your help !!

Ken

[2112 byte] By [KenChung1977] at [2008-2-20]
# 1

You need to use Native WiFi APIs if you want the application works on both XP and Vista. Please note that not all Native WiFi APIs are supported in XP.

The header files are included in the Vista SDK.

The sample code included in the Vista SDK might be a good start point for you.

Regards,

Yi

YiLu-MSFT at 2007-10-2 > top of Msdn Tech,Windows Networking Development,Windows XP Wireless SDK...
# 2

Thanks Yi.

Are there any documented pre-requisites for applications built using Vista SDK using Native WiFi APIs to run on XP?

For Example - Windows Zero Configuration Service must be installed and runnig.

Is there any patch that must be rolled out along with my Wifi application?

cheers!!

Ken

KenChung1977 at 2007-10-2 > top of Msdn Tech,Windows Networking Development,Windows XP Wireless SDK...
# 3

Yes the Zero Configuration Service must be running.

To run you WiFi application on XP, KB918997 package http://support.microsoft.com/kb/918997 must be installed.

Regards,

Yi

YiLu-MSFT at 2007-10-2 > top of Msdn Tech,Windows Networking Development,Windows XP Wireless SDK...