ctypes.CDLL("") fails on MS Windows
Hart's Antler <[email protected]> Wed, 21 Dec 2011 23:21:18 -0800 (PST)
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
In Linux passing an empty string to ctypes.CDLL("") will return a handle to the current process, this can be useful to get to extra functions when Python is embedded. On Windows this trick fails, and raises a WindowsError.
As a workaround i tried loading cygwin1.dll from ctypes and using dlopen directly, but the call blocks and never returns.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users