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: <a href="https://github.com/mvdk/paramiko">https://github.com/mvdk/paramiko</a>.<div>
<br></div><div>Cheers,</div><div><br></div><div>Michael</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 30, 2012 at 11:08 AM, Jeff Hardy <span dir="ltr"><<a href="mailto:jdhardy@gmail.com" target="_blank">jdhardy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, that should work. Can you try it with FindWindowW? Perhaps there's<br>
a unicode issue (IronPython strings are unicode). One other thing to<br>
try would be FindWindowA(b'Pageant', b'Pageant') to force it to use<br>
byte strings.<br>
<br>
- Jeff<br>
<div><div class="h5"><br>
On Thu, Nov 29, 2012 at 3:55 PM, Michael van der Kolff<br>
<<a href="mailto:mvanderkolff@gmail.com">mvanderkolff@gmail.com</a>> wrote:<br>
> In paramiko, we try to find a Pageant window using either the win32all<br>
> module or the ctypes module.<br>
><br>
> win32all is not implemented on IronPython, which is to be expected, but<br>
> ctypes is.  However, FindWindowA doesn't do what we expect:<br>
> On CPython:<br>
>>>> import ctypes<br>
>>>> ctypes.windll.user32.FindWindowA('Pageant','Pageant')<br>
> 131376<br>
><br>
> On IronPython:<br>
>>>> import ctypes<br>
>>>> ctypes.windll.user32.FindWindowA('Pageant','Pageant')<br>
> 0<br>
><br>
> Am I doing something that isn't expected to work?<br>
><br>
> Cheers,<br>
><br>
><br>
> Michael van der Kolff<br>
><br>
</div></div>> _______________________________________________<br>
> Ironpython-users mailing list<br>
> <a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
><br>
</blockquote></div><br></div>