The IsZoomed function determines whether the given window is maximized.
hwnd
Identifies the window.
The return value is nonzero if the window is maximized. Otherwise, it is zero.
IsIconic