I notice that Process Hacker can detect if a process has a main window or not. Take Google Chrome for example. There should be several instances running, but only one has the "window" context menu item enabled. I just wonder which API Process Hacker uses to get this info. Thanks!