I want to be able to minimize/maximize a window of a process that I create with `ShellExecuteEx()`. 

First, I find the process ID and its `HWND` (I made sure it was the good `HWND` with Spy++). 

Next, I try to minimize with `ShowWindow(hwnd)` or with `ShowWindow(GetForegroundWindow(), SW_MINIMIZE)`.

But it doesn't work. I made sure the process was elevated (administrator rights). This seems to work with any other windows, such as the one for Notepad, RocketLeague, or whatever. But this one window doesn't react. When I call `SetForegroundWindow(hwnd)` I can see it flashing in the Taskbar, so I'm sure it is the right `HWND` for my application to use. 

Any idea of what the issue might be?