Wzcsapi.lib for Win32 or Wlanapi.h and Wlanapi.lib for Platform SDK

I write to this forum because I cannot find the place for the Platform SDK.

1-) I have managed a sample project with Visual 6.0 C++ ATL COM for listing the SSIDs using the Wzcsapi.lib I was succesfull only when my project was compiled in Debug mode. I have the Wireless Lan API Hotfix installed on my Development machine. When I try to build my project with Release MinDependency or Minsize face System error during WZCQueryInterface. The system Error Code is 1008 Error_NO_TOKEN. My project is dynamically exporting and linking the functions of wzcsapi.dll using wzcsapi.h.

I suspect that the Program fails because of the Function Pointer mechanism so I tried to find the wzcsapi.lib for a static link. But guess what? Finding that lib is a mystery. Please any body from Microsoft help me on this subject.

2-) A second approach can be using the Native Wifi API but for this I need to find and install Platform SDK (I have Windows 2003 SDK R2 installed 2006 March Release) which includes the wlanapi.h and wlanapi.lib. I have the Windows SDK for Vista and there are the libraray and include files but compiling them for the Visual Studio environemnt brings many problems together. Please advice me a Platform SDK which includes these libraries.

Note: My project will be specific for Windows XP SP2 and no other operating sysytem

[1361 byte] By [BarisERGUN] at [2008-1-4]
# 1

When I uninstall KB918977 "Wireless Lan API Hotfix " on my machine The codes only work in Debug mode and on Release mode I continue to receive the warning for 1008 error. And on some other test machine when I uninstall "Wireless Lan API Hotfix " the Release mode also succeeds. When the "Wireless Lan API Hotfix " is installed it fails on both computers with 1008 Error_No_Token.

Baris ERGUN wrote:

I write to this forum because I cannot find the place for the Platform SDK.

1-) I have managed a sample project with Visual 6.0 C++ ATL COM for listing the SSIDs using the Wzcsapi.lib I was succesfull only when my project was compiled in Debug mode. I have the Wireless Lan API Hotfix installed on my Development machine. When I try to build my project with Release MinDependency or Minsize face System error during WZCQueryInterface. The system Error Code is 1008 Error_NO_TOKEN. My project is dynamically exporting and linking the functions of wzcsapi.dll using wzcsapi.h.

I suspect that the Program fails because of the Function Pointer mechanism so I tried to find the wzcsapi.lib for a static link. But guess what? Finding that lib is a mystery. Please any body from Microsoft help me on this subject.

2-) A second approach can be using the Native Wifi API but for this I need to find and install Platform SDK (I have Windows 2003 SDK R2 installed 2006 March Release) which includes the wlanapi.h and wlanapi.lib. I have the Windows SDK for Vista and there are the libraray and include files but compiling them for the Visual Studio environemnt brings many problems together. Please advice me a Platform SDK which includes these libraries.

Note: My project will be specific for Windows XP SP2 and no other operating sysytem

BarisERGUN at 2007-10-11 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 2

IntfEntry.rdSSID.pData =
IntfEntry.rdBSSIDList.pData =
IntfEntry.rdStSSIDList.pData =
IntfEntry.rdCtrlData.pData =
IntfEntry.rdBSSID.pData = 0;

IntfEntry.rdSSID.dwDataLen =
IntfEntry.rdBSSIDList.dwDataLen =
IntfEntry.rdStSSIDList.dwDataLen =
IntfEntry.rdCtrlData.dwDataLen =
IntfEntry.rdBSSID.dwDataLen = 0;

All these values must be set to 0 not to receive Error_No_Token as documented in the MSDN :

The following members of the INTF_ENTRY structure pointed to by pIntf must be set to 0 before a WZCQueryInterface call: rdSSID, rdBSSID, rdBSSIDList, rdStSSIDList, and rdCtrlData.

BarisERGUN at 2007-10-11 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 3
Baris ERGUN wrote:

IntfEntry.rdSSID.pData =
IntfEntry.rdBSSIDList.pData =
IntfEntry.rdStSSIDList.pData =
IntfEntry.rdCtrlData.pData =
IntfEntry.rdBSSID.pData = 0;

IntfEntry.rdSSID.dwDataLen =
IntfEntry.rdBSSIDList.dwDataLen =
IntfEntry.rdStSSIDList.dwDataLen =
IntfEntry.rdCtrlData.dwDataLen =
IntfEntry.rdBSSID.dwDataLen = 0;

All these values must be set to 0 not to receive Error_No_Token as documented in the MSDN :

The following members of the INTF_ENTRY structure pointed to by pIntf must be set to 0 before a WZCQueryInterface call: rdSSID, rdBSSID, rdBSSIDList, rdStSSIDList, and rdCtrlData.

I was mistaken but when the ReleaseMinDependency Project compiled with MultiThreaded DLL mode I stop receiveing ERROR_NO_TOKEN but this time I receive ERROR_NOT_ENOUGH_MEMORY when calling WZCQueryInterface. Strange thing is some computers I dont recieve this error. (They all don't have Wireless API Update installed) Any clue how to stop this Error Message for this situation?

BarisERGUN at 2007-10-11 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...

Software Development for Windows Vista

Site Classified