tags:

views:

130

answers:

3

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 and my pc crashes because of 1000 windows trying to maximize/restore...

can someone help?

A: 

you should try using EnumDesktopWindows() (documentation here). it will restrain the enumeration to top level windows which are part of the desktop.

Adrien Plisson
+1  A: 

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?

RRUZ