I am trying to access the 802.11 driver to find the signal strengths of all access points in range. JWRAPI and WRAPI are the options I have to implement this. While I could not obtain the binary files for JWRAPI, I have not been able to get the WRAPI library work.
Basically I am not able to compile the test program (WrapiTest.cpp ) provided by the WRAPI (
http://sysnet.ucsd.edu/pawn/wrapi/download.html).
Here are the steps I ve followed.
1. created a new project/workspace in visual c++ 6
2.Placed WRAPI.lib WRAPI.dll and WrapiExports.h in the project folder
3.downloaded the Windows Server 2003 SP1 DDK (
http://www.microsoft.com/whdc/devtools/ddk/default.mspx)
4.Included 'C:\WINDDK\3790.1830\INC\W
XP' in the tools->options->Directorie
s
When I try to compile WrapiTest.cpp , i get the foll error msg
"c:\winddk\3790.1830\inc\w
xp\ntddndi
s.h(80) : error C2146: syntax error : missing ';' before identifier 'NDIS_OID'
c:\winddk\3790.1830\inc\wx
p\ntddndis
.h(80) : fatal error C1004: unexpected end of file found
Error executing cl.exe."
What is this error msg about, how can I solve this ?
In the thread
http://www.experts-exchange.com/Programming/Handhelds_-_PDAs/802_11x_Dev/Q_21250950.html Opanza suggests that using SDK solves the problem. I dont know how an SDK is different from DDK and also which version of SDK to use(if at all using SDK instead of DDK will work )
Note: I had also tried steps 3 and 4 with the latest WDK(Windows Vista RTM 6000.16386.061101-2205 ), that did not help either
Thanks in advance