How to get window status of a running app

Nov 8, 2015
24
1
#1
How to get window status of a running program such as whether its windows max, min or normal (restored). All I've got are just to 'set' those not to 'get'. Thank's much in advance.