I wanted to list/document the various methods use by people to bypass restrictions within Windows for the function SetForegroundWindow(HWND hWnd)
.
SetForegroundWindow(HWND hWnd)
brings the specified window into the foreground, activates it and keyboard input is direct towards that window.
SetForegroundWindow(HWND hWnd)
also has the following criteria either of which must be fulfilled to call the function.