Windows 中通过文件路径获取进程句柄
我正在尝试从 Windows 中的 C 中的 exe 文件路径获取进程句柄,不幸的是我在网上找不到太多相关信息。我尝试过使用 OpenProcess 函数,但这需要更多信息而不仅仅是文件路径。是否可以获取所有正在运行的进程的列表并比较它们的文件路径以获得进程句柄?
I am trying to get a process handle from an exe's filepath in C in Windows, I cannot find much online about this unfortunately. I have tried using the OpenProcess function, however this requires more information than just a filepath. Is it possible to get a list of all the running processes and compare their filepaths to obtain the process handle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论