ctypes卸载dll

问题描述 投票:16回答:1

我正在使用这样的ctypes加载dll:

lib = cdll.LoadLibrary("someDll.dll");

当我使用完库后,需要将其卸载以释放其使用的资源。我在文档中找不到有关如何执行此操作的问题。我看到了这个比较老的帖子:How can I unload a DLL using ctypes in Python?。我希望有一些我没有发现的明显东西,并且更少被黑客入侵。

python ctypes
1个回答
22
投票
© www.soinside.com 2019 - 2024. All rights reserved.