Killing a WinCE device process from a desktop app

后端 未结 1 608
醉酒成梦
醉酒成梦 2021-01-07 06:43

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

相关标签:
1条回答
  • 2021-01-07 07:19

    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.

    0 讨论(0)
提交回复
热议问题