Calling foreign functions from Python? ctypes?

Paul Watson pwatson at redlinepy.com
Sun Jan 8 17:07:26 EST 2006


Martin v. Löwis wrote:
> 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).

I cannot find any way to get to GetVersionInfo in VBScript (cscript).

If so, this appears to leave me with no choice but to produce a Windows 
executable, whether a .exe or C code wrapped from Python.  Right?



More information about the Python-list mailing list