开发者

why is wlanapi.lib missing on Windows XP SP3

To get information about the wireless LAN cards, I came across the api WlanEnumInterfaces . In the documentation, it says

 Minimum supported client  - Windows Vista, Windows XP with SP3 

It means that the api is available on the above mentioned Operating System

The application is running on Windows XP with SP3, but wh开发者_如何学Goen inlcude , it gives error - file not found.

If I search my whole PC, this file is not found. Even the corresponding library is 'wlanapi.lib' is missing

Any help would be useful...


You should be looking for wlanapi.dll, which is the runtime component.

Generally when you're using new APIs, you should be using LoadLibrary and GetProcAddress, so you can handle failure gracefully.


This import library is included with the Windows SDK. I have to guess that you've got an old version of it on your machine. The default install location is c:\program files\microsoft\sdks\windows\???\lib where ??? is the SDK version number (like v7.0).

You can download the SDK from Microsoft. Do make sure that the version you get is compatible with your version of Visual Studio. Do not attempt if you have an old one, like version 6.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜