[python-win32] py2dll - or an example of a dll writen in python?

Darren Blaser darrenb at extendedsystems.com
Fri Sep 2 01:35:46 CEST 2005


I have a dll that I'd like to write a simple replacement for in python. 
Is this possible? Is there an example somewhere of a dll written in python?

The example could be for something as simple as a single dll export 
implementing the following GetApiVersion call...

typedef enum _Status
   STATUS_SUCCESS       = 0x00000000,
   STATUS_FAILED        = 0x00000001

typedef struct _ApiVersionInfo
   DWORD dwMajor;
   DWORD dwMinor;
   DWORD dwDetailed

Status GetApiVersion(ApiVersionInfo *pstVersion);

My googling turned up this old post from 5 years ago, but nothing more 

Thank you very much for any feedback.

Best Regards,


More information about the Python-win32 mailing list