在Windows 7中调试shell扩展
我试图用Visual C ++ 2008在Windows 7中调试shell扩展(IContextMenu)。我在注册表中设置了DesktopProcess = 1,并将主机应用程序设置为explorer.exe。但是当我启动调试器,它启动explorer.exe,然后从进程中分离。不调用shell扩展的DllMain。
I'm trying to debug shell extension (IContextMenu) in Windows 7 with Visual C++ 2008. I have set DesktopProcess=1 in the registry and set host app to explorer.exe. But when I start the debugger, it launches explorer.exe and then detaches from the process. DllMain of the shell extension isn't called.
在调试器中启动与在Windows XP + Visual C ++ 2008中没有任何问题的完全相同的设置的相同代码。
The same code with exactly the same settings launched in debugger without any problems in Windows XP + Visual C++ 2008.
任何想法如何在Win7中调试shell扩展?
Any thoughts how to debug the shell extension in Win7?
浏览器,然后将调试器附加到它。
Try launching explorer and THEN attaching the debugger to it.