[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


Hi,

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
}Status;

typedef struct _ApiVersionInfo
{
   DWORD dwMajor;
   DWORD dwMinor;
   DWORD dwDetailed
}ApiVersionInfo;

Status GetApiVersion(ApiVersionInfo *pstVersion);

My googling turned up this old post from 5 years ago, but nothing more 
recent.
http://mail.python.org/pipermail/python-list/2001-November/074600.html

Thank you very much for any feedback.

Best Regards,

Darren


More information about the Python-win32 mailing list