I'm trying to look at windows from within the job process. I have a python script that is started on the nodes via the job manager, this python script then spawns the real number crunching application. The python script then looks for the windows that are supposedly created by the number crunching application, so the windows should be visible to the python process. EnumWindows() causes an error in this environment, which may be a python issue, as I'm getting a handle for the desktop window with the GetDesktopWindow() command. I'll look at this document you've linked to next.
Thanks!