Skip to content

Processes run as admin don't show up in WindowUtils.getAllWindows(boolean) #1269

@rococode

Description

@rococode

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions