Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

You can use RAPI calls in a file filter to take advantage of registry or file functions.

Do not call CeRapiInitto initialize RAPI in the filter DLL. Rather, the NextConvertFilemethod should have already performed the RAPI initialization and established a connection between the desktop computer and the Windows Embedded CE–based device. If a RAPI call fails because there is no established connection, the file converter should perform some default action rather than just failing. For example, this default action could involve querying the user to select from various options.

To determine if a call failed due to a failure in the RAPI, use CeRapiGetError (RAPI). To diagnose non-RAPI related errors, use CeGetLastError (RAPI).

See Also