[pywin32-bugs] [ pywin32-Feature Requests-752986 ] GetProcAddress has no use right now
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2007-11-10 10:57:28
|
Feature Requests item #752986, was opened at 2003-06-11 16:50 Message generated for change (Comment added) made by barnert You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=752986&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Michael Dubner (dubnerm) Assigned to: Nobody/Anonymous (nobody) Summary: GetProcAddress has no use right now Initial Comment: win32api.GetProcAddress() should be either removed or has some counterpart that will allow to call arbitrary functions with specified parameter types. ---------------------------------------------------------------------- Comment By: Andrew Barnert (barnert) Date: 2007-11-10 02:57 Message: Logged In: YES user_id=1473180 Originator: NO Don't remove it; it's useful for writing simple scripts that read and simple information about DLLs. For example, I work on a project that has three different kinds of loadable plugin modules, where each plugin is just a DLL with a pair of specific exports (factory function and cleanup) with a name that indicates the type. There are three different types of plugins. My script opens a DLL and uses GetProcAddress to find whether it's (a) a valid plugin of one of the three types, (b) not a valid plugin of any type, (c) ... because whoever built it forgot extern "C", or (d) not even a DLL. Sure, I could do the same thing with ctypes (and actually call the code), but I've already got some working scripts today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=752986&group_id=78018 |