Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

detect all windows minimized from c# application

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

like image 868
Suriyan Suresh Avatar asked Feb 01 '26 10:02

Suriyan Suresh


2 Answers

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

like image 138
alemjerus Avatar answered Feb 03 '26 22:02

alemjerus


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.

like image 32
Dan Byström Avatar answered Feb 03 '26 22:02

Dan Byström