Using ActiveSync to start a program

  • Thread starter Thread starter Joel Zinn
  • Start date Start date
J

Joel Zinn

I have a process where I want to have SQL Server CE Merge Replication run
when the PPC device is cradled or connects via wireless. Can Active sync
start a program that can start the replication?
 
Hi Joel,

You can use Registry-Based notification of the ActiveSync on the desktop.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/ht
ml/ceconRegistry-BasedNotification.asp

When your desktop application is launched by ActiveSync due to a device
connection, you can call CeCreateProcess or CeRapiInvoke to function to
execute a code on the device.

CeCreateProcess launches an application on the device.

CeRapiInvoke loads a native DLL on the device and call the specified
function of the DLL.

Thanks

Ercan Turkarslan
Microsoft Mobile Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top