wireless antenna switch

  • Thread starter Thread starter rf
  • Start date Start date
R

rf

Hello, is there a programmatic way to query the state of the wireless switch?

Perhaps there is an interface that I can register for notifications? If so,
does anyone know the interface GUID?

Thanks in advance,
Rick
 
Since your post does not contain the make/model of the antenna switch you
have or what you are trying to find out about it's status regretfully we can
not do much help
Can you provide a link to the switch's user manual?
 
Hello, is there a programmatic way to query the state of the wireless switch?

Perhaps there is an interface that I can register for notifications?  If so,
does anyone know the interface GUID?

Thanks in advance,
Rick

Wireless "adapters" do not have a switch for the attena. You can
normally only turn the wireless radio on / off.
 
rf said:
Hello, is there a programmatic way to query the state of the wireless
switch?

Perhaps there is an interface that I can register for notifications? If
so,
does anyone know the interface GUID?

Thanks in advance,
Rick

Use WLANAPI:
http://msdn.microsoft.com/en-us/library/ms706275(VS.85).aspx

Call WlanQueryInterface(wlan_intf_opcode_radio_state) on a selected
interface
(need to enumerate interfaces first... ideally, you'll have only one)

This returns array of WLAN_PHY_RADIO_STATE (again, ideally
you'll have only one), which is a pair of DOT11_RADIO_STATE
values: "software state" and "hardware state".
http://msdn.microsoft.com/en-us/library/ms706918(VS.85).aspx

The latter is what you want.

If you have more help with this, please ask in
microsoft.public.win32.programmer.networks

Regards,
-- pa
 
Back
Top