[Ironpython-users] ctypes on IronPython - differences with CPython

Michael van der Kolff mvanderkolff at gmail.com
Fri Nov 30 01:46:49 CET 2012


Yep, that works!  Paramiko's agent handling has all kinds of
string==bytestring assumptions, so I'll need to write some patches for
that.  My repo for that work: https://github.com/mvdk/paramiko.

Cheers,

Michael


On Fri, Nov 30, 2012 at 11:08 AM, Jeff Hardy <jdhardy at gmail.com> wrote:

> No, that should work. Can you try it with FindWindowW? Perhaps there's
> a unicode issue (IronPython strings are unicode). One other thing to
> try would be FindWindowA(b'Pageant', b'Pageant') to force it to use
> byte strings.
>
> - Jeff
>
> On Thu, Nov 29, 2012 at 3:55 PM, Michael van der Kolff
> <mvanderkolff at gmail.com> wrote:
> > In paramiko, we try to find a Pageant window using either the win32all
> > module or the ctypes module.
> >
> > win32all is not implemented on IronPython, which is to be expected, but
> > ctypes is.  However, FindWindowA doesn't do what we expect:
> > On CPython:
> >>>> import ctypes
> >>>> ctypes.windll.user32.FindWindowA('Pageant','Pageant')
> > 131376
> >
> > On IronPython:
> >>>> import ctypes
> >>>> ctypes.windll.user32.FindWindowA('Pageant','Pageant')
> > 0
> >
> > Am I doing something that isn't expected to work?
> >
> > Cheers,
> >
> >
> > Michael van der Kolff
> >
> > _______________________________________________
> > Ironpython-users mailing list
> > Ironpython-users at python.org
> > http://mail.python.org/mailman/listinfo/ironpython-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20121130/ace201c4/attachment.html>


More information about the Ironpython-users mailing list