Programmatically Minimize All Windows ("ShowDesktop"), Minimize/Restore windows?
Posted on 2014-09-08
a) How to programmatically, using API functions, minimize all windows and show desktop, i.e. to simulate effect of pressing Win+M
b) How to programmatically, using API functions, toggle between states when all windows are minimized and desktop shown and then toggled and all windows restored to their previous states and positions, i.e. to simulate effect of pressing Win+D
REMARK: obviously, I don’t want to do this by simulating pressing of the Win+M or Win+D key combination (for instance using keybd_event or similar function); I need a more elegant method to do it directly, using API…