Question

how to detect all windows(of other applications) minimized from c# application

Was it helpful?

Solution

Use example from here http://pinvoke.net/default.aspx/user32.EnumDesktopWindows then just check window state

OTHER TIPS

If you want to monitor what's going on in the system, then you want to set up a CBT Hook. That will keep you notified when windows are created, destroyed, minimized, maximized, moved, activated, etc etc.

For Windows Forms you can look at the property WindowState on the Form object. Minimized windows will have a state of FormWindowState.Minimized.

Use GetWindowState() WinAPI function

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top