Does anyone know how to restore a window (which does not belong to current process) to the state is was in previous to having been minimized?
I've been trying ShowWindow and SetForegroundWindow, but if the window was maximized, it will only restore it to it's RESTORE state (not maximized)
ShowWindowAsync(hWnd, SW_SHOW);
SetForegroundWindow(hWnd);
I have tried every flag for nCmdShow, but none work, and I've tried ShowWindow with them all as well as ShowWindowAsync.