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 ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.