Re: pyusb under Cygwin and stdcall libusb-1.0 [SEC=UNCLASSIFIED]

Xiaofan Chen <[email protected]> Wed, 12 Jan 2011 09:51:15 +0800
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
On Tue, Jan 11, 2011 at 1:24 PM, Andrew MacIntyre
<[email protected]> wrote:
> From: Xiaofan Chen
>
>> Just wondering why Ctypes under Cygwin does not support
>> WinDLL? Take note os.name == 'posix' under Cygwin Python.
>
> That really is a question for the maintainer of Python on Cygwin.  It
> may be because the necessary libffi plumbing isn't in yet place on that
> platform.
>

Thanks. I asked in the Cygwin mailing list and the answer suggested
that Cygwin Python should be able to support WinDLL technically
but it has not been implemented yet.

Ref: http://cygwin.com/ml/cygwin/2011-01/msg00103.html
************************************
From: Reini Urban
Both libffi and Ctypes should support stdcall.
I'm helping out with the perl Ctypes equivalent,
and cdecl, stdcall and both 64bit fastcalls do
work perfectly there.

It just looks like cygwin python has no WinDLL support yet.
***********************************



-- 
Xiaofan

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl