Turn On/Off Wifi Radio via C#

N

Noble D. Bell

Is there a way, through C#, to turn off or turn on the WiFi radio? I need to
find a method that will allow me to do this via my program. I would really
like for it to be compliant with logo testing standards if possible.
"ConnMgrReleaseConnection"?

Thanks in advance,
Noble
 
P

Paul G. Tobey [eMVP]

There's no single way to do that. Each device may (or may not), have some
means to disable the radio entirely, but there's no standard API for doing
it for all versions of all devices. I've previously posted how to disable
and unbind the WiFi adapter (which you'd have to identify from the list of
network adapters that you can get via OpenNETCF's network support in Smart
Device Framework). This may or may not actually be what happens when you
tell the custom program that you particular device comes with to disable
WiFi, but it should prevent it from, for example, using power.

I don't know enough about logo requirements to know whether this is OK or
not. You'll have to evaluate that. You might also want to ask this
question in a Pocket PC group, specifically, as I'd expect there to be more
expertise on logo testing there than here.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top