tim golden cggctimgoldenmeuk dahlstrom roger wrote yeah see msdn page hwnd parameter tried following data types c_short c_ushort c_int c_uint c_long c_ulong c_longlong c_ulonglong ctypes includes handy wintypes subpackage ctypes import wintypes print wintypehwnd principle import win32gui import ctypes ctypeswintypes import hwnd ishungappwindow ctypeswindlluser32ishungappwindow def callback hwnd args ishungappwindow hwnd hwnd print win32guigetwindowtext hwnd win32guienumwindows callback none tjg _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 154654 0100 pythonwin32 ishungappwindow equivalent