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...
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 ;-).
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).