MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RAPI2 and ActiveSync

Windows Mobile 6.5
A version of this page is also available for

The Remote API 2 (RAPI2) library communicates with a remote Windows Embedded CE-based device using a connection that is established and maintained by the ActiveSync application.

Developers will need to install ActiveSync on their development computers before they will be able to test any RAPI2 applications. Also, RAPI2 applications will not be able to establish a connection to a remote device on an end user computer unless ActiveSync has been installed.

Because the libraries needed by RAPI2 are installed by ActiveSync, you should not include rapi.dll with your application's desktop installation. Doing so could result in your application overwriting a newer version of the RAPI2 library with an older one an possibly breaking other installed RAPI2 applications.

If you want your RAPI application to automatically execute when a Windows Mobile device connects to the desktop computer, do not put your application in StartUp or allow it to autorun. Instead, register it to be automatically run by ActiveSync upon device connection. For more information, see MSDN.

Other Resources

Community Additions

© 2015 Microsoft