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

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

问题描述

有没有办法通过python外部函数库 ctypes ? / p>

如果可以通过c 类型了解导出功能的详细信息。



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

解决方案

我不认为ctypes提供这个功能。在带视觉工作室的Windows上:

  DUMPBIN-EXPORTS XXX.DLL 

或在窗口上的mingw:

  objdump -p XXX。 dll 


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

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

If yes, could someone provide a snippet of code?

解决方案

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

DUMPBIN -EXPORTS XXX.DLL

Or for mingw on windows:

objdump -p XXX.dll

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

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