PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Flight mode
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Flight mode
![]() |
Flight mode |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. -- Simon Hart Visual Developer - Device Application Development MVP http://simonrhart.blogspot.com "Michal Rizek" wrote: > 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? > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Neil Cowburn has a HOWTO on enabling/disabling flight mode that leverages the
OpenNETCF Telephony SDK: http://blog.opennetcf.org/ncowburn/...FlightMode.aspx -- Nino Benvenuti Device Application Development MVP http://nino.net/blog "Michal Rizek" wrote: > 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? > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

