Programmatic WLAN Access?

  • Thread starter Thread starter the.tarquin
  • Start date Start date
T

the.tarquin

Hello all,

As part of a larger QA project I'm working on, I have to
programmatically tell the wireless card in a windows laptop to connect
to a certain wireless network. This is to test to make sure that the
installed network card is working properly. The problem is, I'm not
entirely sure how to detect which network card is the wireless one, or
how to tell it what network to connect to? Is there some wireless api
out there to help me do that? I looked through MSDN and found some
documentation for some really slick-looking native wireless libraries .
.. . to be implemented in windows vista. Is there anything like that in
XP that can help me out?

To clarify, the steps I need to go through are:

1.) Get name of network from .ini file (DONE)
2.) Tell the wireless card to connect to specified network.
3.) Renew IP from DHCP, if DHCP is available
4.) Disconnect from network.

Any suggestions?

Cheers,
Aaron Brown
 
I should have mentioned - I'm working in C++ in the Visual Studio 2005
IDE.

Cheers,
Aaron
 
.......... Is there some wireless api
out there to help me do that? I looked through MSDN and found some
documentation for some really slick-looking native wireless libraries .
. . to be implemented in windows vista. Is there anything like that in
XP that can help me out?

Yes, a subset of this "native" API works in WinXP.
But currently it is still in beta. If you don't mind participating in
this beta program, join it and get all the bits you need.
http://connect.microsoft.com

Regards,
--PA
 
I should have mentioned - I'm working in C++ in the Visual Studio 2005
IDE.

To use the WLANAPI, you'll need beta 2 Vista platform SDK,
you can get this on MSDN or elsewhere.

--PA
 
Back
Top