Get all windows in taskbar
ive been googling for hours but cant find any way to get all windows in the taskbar. I need to minimize/maximize all windows, but with enumthreadwindows all system process-thread windows are being maximized/restored a开发者_运维技巧nd my pc crashes because of 1000 windows trying to maximize/restore...
can someone help?
The windows displayed in taskbar are equivalent to those that appear when you press ALT + Tab So you can check these links.
Enumerate windows like alt-tab does
Which windows appear in the Alt+Tab list?
you should try using EnumDesktopWindows()
(documentation here). it will restrain the enumeration to top level windows which are part of the desktop.
IShellDispatch4.ToggleDesktop minimize/maximize all desktop windows
精彩评论