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.
我在http://code.google.com/p/win-mobile-code/source/browse/#svn%2Ftrunk%2Fcpumon%2FProcessorUsage%2FCpuMon2有一个名为 cpumon2 的谷歌代码项目
这显示了如何构建可用于搜索命名进程的正在运行的进程列表,然后您就知道它是否正在运行。代码使用reateToolhelp32Snapshot,见http://code.google.com/p/win-mobile-code/source/browse/trunk/cpumon/ProcessorUsage/CpuMon2/Process.cs
我不能在这里发布代码,因为它被分成几个文件(类)
如果您只想直观地验证您的进程是否正在运行,您可以使用作为 VS2008 远程工具的一部分提供的 Remote Process Viewer。我假设您的设备是通过 ActiveSync 或 WMDC 连接的。