Flight mode

G

Guest

Hello,
is it possible to detect whether Flight mode is set?
I can detect whether phone is off using
Microsoft.WindowsMobile.Status.SystemState, but how to turn it on and flight
mode off?
 
G

Guest

As you have discovered, SNAP is great for notification and getting state but
does not offer any changes in state.

You need to use TAPI to turn the radio off. In particular you need to use
the lineSetEquipmentState function.

You will notice the lineSetEquipmentState function accepts a handle which is
the tapi handle and a DWORD. Set DWORD to 0x00000001 to disable radio. These
values are documented in extapi.h. Download the Windows Mobile SDK for this.

See here for more info: http://msdn2.microsoft.com/en-us/library/ms862586.aspx

OpenNETCF has written a managed wrapper to TAPI, so you might want to take a
look at it. http://www.opennetcf.org.
 

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