Dahlstrom, Roger wrote: > Yeah - I see the MSDN page and the HWND parameter. > I tried the following data types: C_short, c_ushort, c_int, c_uint, > c_long, c_ulong, c_longlong, c_ulonglong.
ctypes includes a handy wintypes subpackage: from ctypes import wintypes print wintype.HWND So, in principle: <code> import win32gui import ctypes from ctypes.wintypes import HWND IsHungAppWindow = ctypes.windll.user32.IsHungAppWindow def callback (hwnd, *args): if IsHungAppWindow (HWND (hwnd)): print win32gui.GetWindowText (hwnd) win32gui.EnumWindows (callback, None) </code> TJG _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32