Re: Detecting an ActiveSync connection
- From: "Peter Foot [MVP]" <feedback@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Mar 2007 00:58:38 -0000
You can use CeRunAppAtEvent with NOTIFICATION_EVENT_ON_AC_POWER or
NOTIFICATION_EVENT_RS232_DETECTED events. See the documentation for having
this trigger a named event then use WaitForSingleObject in a worker thread
in your application.
Peter
--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com
"rmuti" <rmuti@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CA7A0F47-AEAF-4C53-8342-D407C109777F@xxxxxxxxxxxxxxxx
I have a .NET CF 2.0 application running on a Windows Mobile 2003 (Pocket
PC)
device, and I need to detect an ActiveSync connection.
I've looked into IDccMan/IDccManSink but that only works on the desktop
side
(correct me if I'm wrong). Then I developed a service that polls the
"PPP_PEER" registry key setting every 10 seconds or so, and this works,
but
isn't very efficient.
Is there a way I can have an event raised when the registry key changes?
I
think this is possible in Windows Mobile 5.0, but I don't see a similar
function in the Windows Mobile 2003 API.
Otherwise, feel free to suggest a better way to detect an ActiveSync
connection. I'd like to avoid depending on third-party APIs though.
Thanks in advance.
.
- Prev by Date: Re: VS2005: No OnPaint?
- Next by Date: Re: How to open EDB
- Previous by thread: Trouble running app on Windows Mobile 5.0
- Next by thread: check you code
- Index(es):
Relevant Pages
|