Tuesday, February 25, 2014
If you have Windows 8.1, try this: hit the Windows key, start typing “not” until you see autocomplete for Notepad and hit Enter. Now type something in Notepad and repeat the same thing. Notice that when you hit Enter to launch Notepad again, it will reactivate the previous running instance of Notepad. If you have multiple instances of Notepad, it will reactivate an arbitrary instance. I don’t know who the hell thought this is a good idea. Same thing essentially happens with any desktop app (including the Command Prompt which is another thing that infuriates me).
On Windows 8 there used to be this undocumented registry setting (
DesktopAppsAlwaysLaunchNewInstance) that no longer works for search results in 8.1. So we have a problem to fix. I won’t go much into details, but if you want this fixed, you can do this:
- Install Debugging tools for Windows (free download from MSDN)
- Create a directory on your computer to store symbols in (I use c:\localsymbols)
- Create a shortcut on your desktop to run this:
[path_to_debugging_tools]\ntsd.exe -pn explorer.exe -pv -y SRV*[path_to_local_symbols]*http://msdl.microsoft.com/download/symbols -c "eb Windows_UI_Search!SearchUI::Data::SwitchToApp b8 00 00 00 00 c3; q"(replace the two paths to point wherever you need)
- Double click the shortcut and repeat the above experiment. You are welcome.
Topics: Reversing | Comments Off on Always launch new instances
Comments are closed.