Issue 1559219: Practical ctypes example (original) (raw)

Issue1559219

Created on 2006-09-15 11:01 by leppton, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
get_exports.py leppton,2006-09-15 11:01 Read exports from dll script
Messages (4)
msg51117 - (view) Author: leppton (leppton) Date: 2006-09-15 11:01
Ctypes module documentation can be little hard to grasp, so I wrote a practical example that reads all function names from dll export directory. It has structures, pointer arithmetic, and function prototype with default parameters. Maybe it fits somewhere in documentation...
msg51118 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-11-02 20:41
Logged In: YES user_id=11105 I guess that a ~300 line module is too large to add to the documentation. OTOH, this module implements very useful functionality. If you give me the permission to distribute this module under the MIT license, I would like to add it to a 'ctypeslib' supplemental package (which will also contain other useful stuff). Oh, and the same functionality for ELF-based platforms would be very nice ;-).
msg51119 - (view) Author: leppton (leppton) Date: 2006-11-03 00:20
Logged In: YES user_id=1598785 Permission granted for MIT license. Can't help with ELFs, I'm a windows guy :/
msg51120 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-11-14 18:06
I've added this as a module ctypeslib.contrib.get_exports, in the SVN repository at http://svn.python.org/projects/ctypes/trunk/ctypeslib. Thanks, leppton (if you would like to see your real name in the code somewhere please tell me so).
History
Date User Action Args
2022-04-11 14:56:20 admin set github: 43976
2006-09-15 11:01:43 leppton create