I\'m copying files from the desktop to a WinCE device (via the RAPI API), and if the main WinCE program is running, I need to kill it, update and restart it again.
S
RAPI doesn't provide a direct way to kill a process. You must create a custom RAPI DLL that provides that capability. As a good starting point, this blog article shows how to retrieve the device ID via a custom RAPI dll. Just modify it to broadcast a WM_CLOSE and then a TerminateProcess if that fails.