how to kill/stop another app. from my app.

  • Thread starter Thread starter rocio
  • Start date Start date
R

rocio

Just wondering if I can detect what other applications are running in my CE
device, and stop/kill them from my application. How can I do this?
 
If your device has the toolhelp.dll file on it, you can call functions in
that DLL to enumerate processes and call TerminateProcess() on them. This
is not a good idea, however. You'd be better off to arrange for the
applications you want to control to have publicized interfaces for
terminating them, since that's less likely to leak memory.

Sorry, but I don't have the P/Invoke declarations for the toolhelp
functions. OpenNetCF has the declaration for TerminateProcess in its Win32
project in the process.cs file.

Paul T.
 
Jonathan,

Many thanks for these links. They answer lots of other questions I have
while developing my app.
I'm reading them carefully, and will probably come out with some questions
later. But this is a great start.

Rocio
 
Back
Top