Log in

View Full Version : ActiveSync event


fumaillo
01-13-2004, 09:51 AM
Hello everybody,

I´m trying to find out how can I detect when the activeSync program runs (I want an application to run in the pocket pc when it´s placed in the cradle)

Any idea ??

Thanks in advance.

Jimmy Dodd
01-13-2004, 03:41 PM
You can launch an application on the desktop when a connection is made by adding an entry to HKLM\Software\Microsoft\Windows CE Services\AutoStartOnConnect using CeSvcOpen( ). From the desktop app you could use RAPI to launch an app on the PPC using CeCreateProcess( ).

or, more directly,

You can launch an app directly on the PPC by registering it via CeRunAppAtEvent( ) using the NOTIFICATION_EVENT_SYNC_END flag.