如何判断进程是否正在移动设备上运行
我在 Pocket PC 2003 设备上拥有进程“A”的句柄。 我需要确定该进程是否仍在进程“B”中运行。 进程“B”是用嵌入式 Visual C++ 4.0 编写的。
I have the handle of process 'A' on a Pocket PC 2003 device. I need to determine if that process is still running from process 'B'. Process 'B' is written in Embedded Visual C++ 4.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
进程句柄是可等待的。 当进程退出时,它们会收到信号 - 将释放任何等待线程。 您可以将它们与 WaitForSingleObject、WaitForMultipleObjects 等一起使用。
Process handles are waitable. They are signalled - will release any waiting thread - when the process exits. You can use them with WaitForSingleObject, WaitForMultipleObjects, etc.
如果调用该函数时进程正在运行,则 GetExitCodeProcess 将返回 STILL_ACTIVE。
GetExitCodeProcess will return STILL_ACTIVE if the process was running when the function was called.