I've been scouring Apple's documentation, Google, and the frameworks on my system trying to find out how to get a list of all open windows on the system (like QuartzDebug does).
I've been trying to figure out what QuartzDebug does. It seems to call a mysterious function called CGSSetDebugOptions(), then read the list from the file /tmp/WindowServer.winfo.out. I assume that CGS means CoreGraphicsService. I found a brief mention of this on Apple's developer site. It just said that it's a private framework used for accessing the Window Server. Does anyone have any info on this/any other ideas?