Ever wondered how the ActiveSync synchronization application gets launched automatically when you plug-in your SmartPhone or PocketPC? Or, would you like to build your application ActiveSync-aware, getting invoked when ActiveSync connection has been established or disconnected?
On your desktop, under the following registry key, create an entry for the application to be launched when ActiveSync connection has been established:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows CE Services\AutoStartOnConnect
Likewise, to invoke an application when ActiveSync connection is disrupted, create an entry under the following registry key:
HKLM\Software\Microsoft\Windows CE Services\AutoStartOnDisconnect