Suriyan Suresh
Suriyan Suresh

Reputation: 3024

detect all windows minimized from c# application

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

Upvotes: 3

Views: 1983

Answers (4)

Dan Byström
Dan Byström

Reputation: 9244

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.

Upvotes: 1

alemjerus
alemjerus

Reputation: 8268

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

Upvotes: 5

oldUser
oldUser

Reputation: 243

Use GetWindowState() WinAPI function

Upvotes: 0

James Bloomer
James Bloomer

Reputation: 5322

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

Upvotes: -1

Related Questions