GetWindowPlacement returns showCmd = 3 when the target app is maximized and 1 if it is normal. So far so good, but it returns 1 even if it is minimized (should return 2). If I click the min button on the target app, then it is minimized. If I force normal state then the target app is restored to normal, however the min button on the target app is disabled. Why SW_SHOWMINIMIZED is being ignored by GetWindowPlacement?