使用 ctypes 列出从 dll 导出的函数 [英] list exported functions from dll with ctypes

查看:33
本文介绍了使用 ctypes 列出从 dll 导出的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以通过python外部函数库ctypes知道dll中导出了哪些函数?

Is there any way to know which functions are exported from the dll through python foreign function library ctypes?

如果可能的话,可以通过 ctypes 了解有关导出函数的详细信息.

And if possible to know details about the exported functions through ctypes.

如果是,有人可以提供一段代码吗?

If yes, could someone provide a snippet of code?

推荐答案

我认为 ctypes 不提供此功能.在带有 Visual Studio 的 Windows 上:

I don't think ctypes offers this functionality. On Windows with visual studio:

DUMPBIN -EXPORTS XXX.DLL

或用于 windows 上的 mingw:

Or for mingw on windows:

objdump -p XXX.dll

这篇关于使用 ctypes 列出从 dll 导出的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆