Turn off Wireless card programtically

  • Thread starter Thread starter BadMrFrosty
  • Start date Start date
B

BadMrFrosty

I want to be able to turn the wireless card on and off programmatically.
Searched google and didn't find anything.

Thanks
 
If you mean Disable it, in the sense of going to the Network and Dial-up
Connections program in CE.NET, selecting the card, and choosing Disable,
then here's what that does:

1. Tells the power management driver to set the adapter's power state to
power down.
2. Tells the adapter's driver, if it supports power management, to set the
same state.
3. Sends IOCTL_NDIS_UNBIND_ADAPTER to NDIS to disconnect the driver from any
network protocols.

I think you'll have to do all of this using P/Invoke.

Paul T.
 
Back
Top