Is there API call for retrieving the state of a window(maximized,minimized) and how can I restore it to his
original size.

THANKS