Get the process name, pid, and other information from a window.