Possible Duplicate:
How to get all processes running in .net cf
I have a process called myprocess.exe
. How can I know if this process is running in my smart device? On the device is installed Windows Mobile 6.1.
Possible Duplicate:
How to get all processes running in .net cf
I have a process called myprocess.exe
. How can I know if this process is running in my smart device? On the device is installed Windows Mobile 6.1.
I have a google code project called cpumon2 at http://code.google.com/p/win-mobile-code/source/browse/#svn%2Ftrunk%2Fcpumon%2FProcessorUsage%2FCpuMon2
This shows how to build a running process list that can be used to search for a named process and you know then if it is running or not. The code uses reateToolhelp32Snapshot, see http://code.google.com/p/win-mobile-code/source/browse/trunk/cpumon/ProcessorUsage/CpuMon2/Process.cs
I cannot post the code here as it is split into several files (classes)
If you just want to visually verify whether or not your process is running, you can use the Remote Process Viewer that ships as part of VS2008 remote tools. I'm assuming your device is connected via ActiveSync or WMDC.