Package oshi.driver.windows
Class EnumWindows
java.lang.Object
oshi.driver.windows.EnumWindows
Utility to query Desktop windows
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.sun.jna.platform.win32.WinDef.DWORD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<OSDesktopWindow> queryDesktopWindows
(boolean visibleOnly) Gets windows on the operating system's GUI desktop.private static void
updateWindowZOrderMap
(com.sun.jna.platform.win32.WinDef.HWND hWnd, Map<com.sun.jna.platform.win32.WinDef.HWND, Integer> zOrderMap)
-
Field Details
-
GW_HWNDNEXT
private static final com.sun.jna.platform.win32.WinDef.DWORD GW_HWNDNEXT
-
-
Constructor Details
-
EnumWindows
private EnumWindows()
-
-
Method Details
-
queryDesktopWindows
Gets windows on the operating system's GUI desktop.- Parameters:
visibleOnly
- Whether to restrict the list to only windows visible to the user.- Returns:
- A list of
OSDesktopWindow
objects representing the desktop windows.
-
updateWindowZOrderMap
-