gpt4 book ai didi

python - 如何使用 Python 列出进程加载的所有 dll?

转载 作者:太空狗 更新时间:2023-10-29 18:21:31 25 4
gpt4 key购买 nike

我想列出一个进程加载的所有dll,像这样:

enter image description here

如何在 Windows 上使用 Python 获取信息?

最佳答案

使用包psutil有可能获得可移植解决方案! :-)

# e.g. finding the shared libs (dll/so) our python process loaded so far ...
import psutil, os
p = psutil.Process( os.getpid() )
for dll in p.memory_maps():
print(dll.path)

关于python - 如何使用 Python 列出进程加载的所有 dll?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5553917/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com