Using RAPI Calls in a File Filter (Windows Embedded CE 6.0)

1/6/2010

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

Do not call CeRapiInit to initialize RAPI in the filter DLL. Rather, the NextConvertFile method 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

Concepts

Implementing and Using a File Filter