Latest news: November 14, 2008
Advanced WiFi-Manager v3.2 released!
October 21, 2008
WinI2C/DDC Lite v3.22 released!
October 20, 2008
Advanced WiFi-Manager v3.1 released!
October 17, 2008
WinI2C/DDC v3.22 released!
| | |
|
WiFi-Manager: Developer's Guide
|
WiFi-Manager consists from one file only: WiFiMan.dll.
This file must be located under "<windows>\system32" or any other directory
available for the running application. If you want to use WiFi-Manager as COM object then
this file must be registered through regsvr32.exe before using.
Advanced WiFi-Manager also contains NDIS driver: wifimanio.sys The best solution is copy this file
to "<windows>\system32\drivers" directory. This driver must be installed at your software installation,
use InstallDriver function for that. Also Advanced WiFi-Manager requires OpenSSL library: "libeay32.dll",
"libssl32.dll" and "ssleay32.dll" files in "<windows>\system32" directory (and perhaps "msvcr71.dll",
it depends on how OpenSSL was compiled).
Firstly, you should enumerate available wireless adapters by calling EnumerateAdapters
function. It will return a number of adapters found if success, otherwise it will return
an error code.
After adapters enumeration, you can call any other WiFi-Manager functions. For example, following example will display all available
WiFi networks for first adapter:
|
...
#include "wifiman.h"
...
int res;
char name[256];
res = EnumerateAdapters();
if (res > ERROR_OFFSET) return; //some error
if (res == 0) return; //no adapters found
res = EnumerateAvailableNetworks(0); //enumerate available networks for first adapter (0)
if (res > ERROR_OFFSET) return; //some error
for (int i=0; i < res; i++)
{
GetAvailableNetworkName(0, i, name, 256); //get name of network (i) of first adapter (0)
MessageBox(0, name, NULL, 0); //display network name
}
|
You should call FreeAllResources function when WiFi-Manager
library is not necessary anymore, this function will release all allocated memory and resources.
WiFi-Manager package contains demo projects for various programming languages (VB, C++, C#, Delphi), see "Samples" directory
for details.
|
|