Diez B. Roggisch wrote:
> luca72 schrieb:
>> There is a command for ctypes that help me to know the entry points
>> inside a library.
> 
> dir() on a loaded library?
> 
> But it won't do you any good, without having the header-file you can't 
> possibly know what the functions take for parameters.

I was trying this right now, but I can't even get the exported function
names:

>>> from ctypes import *
>>> l = cdll.msvcrt
>>> type(l)
<class 'ctypes.CDLL'>
>>> dir(l)
['_FuncPtr', '__class__', '__delattr__', '__dict__', '__doc__',
'__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__',
'__getitem__', '__gt__', '__hash__', '__init__', '__le__', '__lt__',
'__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', '_func_flags_', '_func_restype_', '_handle', '_name']


shouldn't the C functions names be there?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to