http://topic.csdn.net/u/20110125/11/331df2a0-750e-422b-b168-be2b76ef909d.html?70763
如可解决,可以再加分。

解决方案 »

  1.   

    Previously we've encountered many app compatibility problems regarding this 
    interface, therefore it's currently disabled by default on Vista with a 
    policy control:You can turn it on by enabling POLID_EnableShellExecuteHooks. Set this 
    under 
    [HKLM|HKCU]\Softwaren\Microsoft\Windows\CurrentVersion\Policies\Explorer 
    EnableShellExecuteHooks=<DWORD>1. http://www.codeguru.com/forum/showthread.php?t=485132
      

  2.   

    这个是控制的IShellExecuteHook这个接口的HOOK吧,ICopyHook也受这个控制码?
      

  3.   

    我知道原因了,WIN7中使用打印机属性中修改的名称,所以没有经过Explorer的HOOK,所以就没有捕获到,那怎么可以捕获到用户在打印机属性窗口修改打印机名称的操作呢。
      

  4.   

    已经证实此问题和WIN7没有关系:“用户按F2修改名称”的方式会走系统HOOK,所以可以控制住。
    “用户在右键属性对话框中修改打印机名称”的方式没有走系统的HOOK,所以没有控制住。高手支招啊。