[python-win32] win32gui.EnumWindows does not work on worker threads

Radu Savutiu rsavutiu at gmail.com
Wed Feb 6 10:27:54 CET 2013


I appreciate answers received, however none worked for me. It turned out
replacing win32gui.EnumWindows with ctypes.windll.user32.EnumWindows - and
then it worked.

Maybe there is an error with win32gui's implementation?

The code is really vast, I can't post it.


On Mon, Jan 28, 2013 at 5:34 PM, Radu Savutiu <rsavutiu at gmail.com> wrote:

> Hi all,
>
> I have multiple scripts in which i used win32gui.EnumWindows.
> So far they all worked - but now it seems they pause on this call to
> EnumWindows.
>
> I suspect this has nothing to do with pythoncom, as I use CoInitialize
> there and it works.
>
> Any ideas?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20130206/affca629/attachment.html>


More information about the python-win32 mailing list