My desktop application hook some hot keys eg: CTRL+SHIFT+F12, while the hot keys are pressed, it will bring my desktop application window into foreground or stay on top. But in Window 8 or 8.1, while it is in Window Start Screen or Metro App is running in foreground, my program unable to switch back to desktop mode and bring my window into foreground. I have tried the following API, SetFocus(hwnd); ShowWindow(hwnd, SW_SHOW); SetActiveWindow(hwnd); SetForegroundWindow(hwnd); SwitchToThisWindow(hwnd);
I even try on ShellExecute on "explorer.exe shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}", it doesn't work.
I'm not sure how Classic Shell latest version (http://www.classicshell.net) able to do this, when I pressed SHIFT+WIN key, it able to switch from Metro Mode back to desktop mode and show the Classic Shell Window.
Thanks.