Write Your Own RAPI Functions with CeRapiInvoke
Earlier in this chapter CeCreateProcess was used to create a process on a Windows CE device. However, because the handles returned in the desktop application actually reside on the Windows CE device, you cannot use these handles to block until the application is terminated. This may be important if you need your desktop application to wait until the CE application has terminated. You can circumvent this problem by writing your own RAPI functions on the Windows CE device and calling them from the desktop using CeRapiInvoke.
To do this you must do the following:
Write a dynamic link library (DLL) for the Windows CE device, and implement your own RAPI function. This function must be exported.
Call the ...