在Windows 7中调试shell扩展 [英] Debugging shell extension in Windows 7

查看:406
本文介绍了在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.

这篇关于在Windows 7中调试shell扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆