<p>Does anyone know where I can find an example of how to determine if the Maximize and/or Minimize buttons on a window are available and/or disabled?</p>

<p>The window will not be in the same process as my application.  I have the hWnd and I have tried using GetMenuItemInfo, but I can't find any good samples for how to do this.</p>

<p>Thanks!</p>

Use the
GetWindowInfo
function.
Test the
WINDOWINFO
structure's dwStyle field and see if the WS_MAXIMIZEBOX bit is on.
```
```
WINDOWINFO.dwStyle & WS_MAXIMIZEBOX != 0
```
```