The GetWindowPlacement function returns a WINDOWPLACEMENT that has a showCmd field:
Sets the current window display state.
The details of this are read as if you were setting the state of the window, but I suspect this is because they were copied from another place and not updated.
source share