Calling foreign functions from Python? ctypes?

"Martin v. Löwis" martin at
Sat Jan 7 02:57:26 CET 2006

Paul Watson wrote:
> I need to call GetVersionInfo() and handle VERSIONINFO information.  I
> thought that distutils might have something, but I do not see it yet.
> Any suggestions?

You could write this specific API in VB, and then run cscript.exe in
a pipe; or you could write a wrapper module just for that specific
API (in case PythonWin is too large for you).


More information about the Python-list mailing list