如何判断进程是否正在移动设备上运行

发布于 2024-07-04 04:18:46 字数 94 浏览 17 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫弦 2024-07-11 04:18:46

进程句柄是可等待的。 当进程退出时,它们会收到信号 - 将释放任何等待线程。 您可以将它们与 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.

半岛未凉 2024-07-11 04:18:46

如果调用该函数时进程正在运行,则 GetExitCodeProcess 将返回 STILL_ACTIVE。

GetExitCodeProcess will return STILL_ACTIVE if the process was running when the function was called.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文