Re: Detecting an ActiveSync connection

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.


.



Relevant Pages

  • Wake a Windows mobile device via activesync
    ... Is there any way I can wake Windows Mobile device and re-establish a USB ... activesync connection to the device from the connected PC? ... the number of disconnections grows to be quite high. ...
    (microsoft.public.pocketpc.activesync)
  • Re: BattSuspendTimeout registry
    ... So, you're saying that you are a Windows Mobile OEM? ... suspend when on battery power? ... build the image and download to the platform that running window mobile 5. ... i don't know why when i view this registry key in platform ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Enumerate Installed Software
    ... we do plan on not using this registry key in the future. ... On Pocket PC devices prior to Windows Mobile 5.0, ... developers should query the UnInstall Configuration ... Service Provider feature to determine what applications have been installed. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: req: crak for activesync 4 to allow desktoptodevice and device
    ... OK here is what I have learned so far that is necessary for Pocket ... Access synchronization under Windows Mobile 5/ActiveSync 4: ... Then, on the desktop, remove the following registry key: ...
    (microsoft.public.pocketpc.developer)
  • RE: Where does Windows Mobile 2003 save "country" selection?
    ... "zuschauer" wrote: ... > I have the problem that i can't find the registry key where windows mobile ... Prev by Date: ...
    (microsoft.public.pocketpc.developer)