PC Review


Reply
 
 
=?Utf-8?B?TWljaGFsIFJpemVr?=
Guest
Posts: n/a
 
      12th Nov 2007
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2ltb24gSGFydCBbTVZQXQ==?=
Guest
Posts: n/a
 
      12th Nov 2007
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?
>

 
Reply With Quote
 
=?Utf-8?B?TmlubyBCZW52ZW51dGk=?=
Guest
Posts: n/a
 
      12th Nov 2007
Neil Cowburn has a HOWTO on enabling/disabling flight mode that leverages the
OpenNETCF Telephony SDK:
http://blog.opennetcf.org/ncowburn/2...lightMode.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?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn on / off flight mode cyberco Microsoft Dot NET Compact Framework 5 11th Jan 2007 03:55 PM
Turn off / on flight mode Craig Microsoft Dot NET Compact Framework 2 18th Dec 2006 04:26 AM
Programmatically turn on/off flight mode. Steve Microsoft Dot NET Compact Framework 1 29th Sep 2006 06:35 PM
How to turn on/off flight mode? LirenZhao Microsoft Dot NET Compact Framework 2 6th Jun 2005 12:01 PM
3D Mode Error - MS Flight Simulator 2004 Andre ATI Video Cards 3 10th Aug 2003 01:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.