When an executable is run with "Run this program as an administrator" toggled on in Compatibility settings in Windows 10, it appears to not show up in calls to WindowUtils.getAllWindows(boolean).
I guess this may be intentional as a restriction of the OS, and might be bypassed by running the Java process as admin, but perhaps it's worth mentioning in the docs somewhere (if it's not already)? Just spent a fair chunk of time trying to figure out why a process was missing from the list of DesktopWindows that is returned. I admit I haven't spent much time looking into it, was just glad to realize that turning off the "Run as admin" toggle made the process show up again. I figure even if it doesn't warrant a minor update to the docs it can't hurt to document it as an issue here for posterity!
(this is on latest JNA)
When an executable is run with "Run this program as an administrator" toggled on in Compatibility settings in Windows 10, it appears to not show up in calls to
WindowUtils.getAllWindows(boolean).I guess this may be intentional as a restriction of the OS, and might be bypassed by running the Java process as admin, but perhaps it's worth mentioning in the docs somewhere (if it's not already)? Just spent a fair chunk of time trying to figure out why a process was missing from the list of DesktopWindows that is returned. I admit I haven't spent much time looking into it, was just glad to realize that turning off the "Run as admin" toggle made the process show up again. I figure even if it doesn't warrant a minor update to the docs it can't hurt to document it as an issue here for posterity!
(this is on latest JNA)