一些WinAPI来检查哪个进程创建了命名管道?

发布于 2024-07-27 12:24:43 字数 146 浏览 3 评论 0原文

是否有一些 WinAPI 调用可以告诉我谁(哪个进程)创建了命名管道?

注意:问这个问题时,我感觉它有某种“气味”,正确的设计是使用其他方式传达进程 ID/句柄,但是从管道本身获取此信息会更简单,因此如果有这样的API,我可能仍然会使用它。

Is there some WinAPI call which would tell me who (which process) has created the named pipe?

Note: Asking this questions, I have a feeling it "smells" somehow, and a proper design will be to communicate the process ID/handle using other means, however getting this information from the pipe itself would be simpler, and therefore if there is such API, I would probably still use it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

水晶透心 2024-08-03 12:24:44

不,没有。 你对气味的看法是对的。

No, there isn't. And you are right about the smell.

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