RE: Wireless Auto Connect & Disconnect in C++
- From: "Liang Chen" <LiangChen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 01:40:31 -0800
Hi Frenkel,
You can refer to WRAPI at http://sysnet.ucsd.edu/pawn/wrapi/, which can do
the staffs you want.
Thanks!
-Liang
"JasonCA" wrote:
My Original Question:.
-------------
With two generic 802.11 wireless devices that use windows XP to establish
communication, I'm looking for an alternative means to establish network
communication between two wireless 802.11 devices.
I'm looking for a means to control how a 802.11 wireless device connects to
another 802.11 wireless device through C++. In windows XP there is a auto
connect feature for wireless connections. However, through C++, I'm looking
for means to tell when the 802.11 wireless device should make a connection to
another 802.11 wireless device without having to use Windows Wireless
Connection interface.
Would this require windows networking software development kit (I forget the
name of the SDK off hand)?
Thanks!
(CONTINUATION)…
In other words,
I want local Wireless network adapter to connect to a remote adapter, for
instance, by a given SSID that I see.
From my understanding "Wireless Zero Configuration " is the service on XP
that allows XP users to connect to to wireless remote devices, right? So, if
I were to disable the service, is it possible to programmically tell my
wireless device to which SSID I would like to connect to (how long to connect
to it, and if I get disconnected from it, to automatically connect back to if
the wireless signal was lost)? If so, how to approach it?
Would one use NDISUIO to do this?
Link to my original question:
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.win32.programmer.networks&tid=b77fbd11-5c77-4d4f-9258-ca47c5f70919&p=1
---------------
Famous Arkady Frenkel kindly replied:
Yes WZC use it , but you can't do the same, because NDISUIO changed and now
its only MSFT proprietary , you see old one in DDK, you need to use NDISPROT
instead, you'll send custom IOCTLs which your custom NDISPROT will translate
to OIDs, you need kernel mode for that
------------------
Sir Arkady,
So the situation is that I’m trying to find a way to control how my wireless
802.11 device connects to another 802.11 wireless device or AP? I want to be
able to tell the 802.11 wireless device to connect to a given SSID in a list.
The question is how this can be done in windows?
Would it be something like (using NDISUIO):
First, set the network mode to ad-hoc/infrastructure?
(OID_802_11_NETWORK_INFRASTRUCTURE)
Second, set the channel? (OID_802_11_CONFIGURATION)
Third, set the SSID? (OID_802_11_SSID)
Fourth...what is missing here? How do I ACTUALLY establish the connection?
What's essentially the connect function?
Without the Wireless Zero Configuration, you said "you can't do the same"
(if I understood you correctly)? You further said that I couldn't because
NDISUIO has changed and that it is now MSFT proprietary? So the only way to
connect & disconnect is through kernel mode? Can you further explain this for
me?
Lastly, what's the difference between NDISPROT and NDISUIO?
Thank you A. Frenkel!
- Follow-Ups:
- RE: Wireless Auto Connect & Disconnect in C++
- From: JasonCA
- RE: Wireless Auto Connect & Disconnect in C++
- References:
- Wireless Auto Connect & Disconnect in C++
- From: JasonCA
- Wireless Auto Connect & Disconnect in C++
- Prev by Date: Re: Wireless Auto Connect & Disconnect in C++
- Next by Date: Re: Clicks & Pops on USB/Laptop
- Previous by thread: Re: Wireless Auto Connect & Disconnect in C++
- Next by thread: RE: Wireless Auto Connect & Disconnect in C++
- Index(es):
Relevant Pages
|