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

Jeff Hardy jdhardy at gmail.com
Fri Nov 30 01:08:29 CET 2012


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
>


More information about the Ironpython-users mailing list