Using ActiveSync to start a program

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?
 
E

Ercan Turkarslan [MS]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top