Grzegorz Adam Hankiewicz wrote: > I'm using win32gui.FindWindow() to find the handle of a window. This > works until you set the title of a window to some unicode strange > looking title like russian or arabic. > > The msdn documentation about FindWindowEx mentions the existence of > FindWindowExW supported by the Microsoft Layer for Unicode (MSLU). But > how do I access this function?
I *think* -- and I could be wrong about this -- that you *are* using that function, because the MS compiler set uses a macro to alias one of <function>A and <function>W as <function> depending on whatever Unicode settings are in place when you compile the program. The note about the MSLU is to say that, while this version of the function is supported natively by Win2K, XP and later, under Win9x it's only supported by virtue of the MSLU. If you want to be *certain* you're accessing the function, you can get direct access by using ctypes: <code> import ctypes ctypes.windll.user32.FindWindowExW </code> TJG _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32