list exported functions from dll with ctypes

Tom picture Tom · May 23, 2010 · Viewed 38.8k times · Source

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?

Answer

xealits picture xealits · Apr 9, 2014

If you are on Linux, there is a handy utility nm to list the content of a shared library (there is always a handy utility on Linux, especially for C stuff).

Here is the question about it.

You use it with the -D flag: nm -D ./libMyLib.so