"rf" <> wrote in message
news:64678800-A848-450A-A627-...
> 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/libr...75(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/libr...18(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