您的位置:首页 > 运维架构 > Shell

Shell右键菜单获取快捷方式(LNK文件)的实际路径

2009-06-17 10:50 417 查看
 IContextMenu with a shortcut and another file/folder selected - Craig Peterson
http://www.eggheadcafe.com/software/aspnet/31959224/icontextmenu-with-a-short.aspx
1) Register as a handler for both "*" and "lnkfile". s
2) In IContextMenu.QueryContextMenu if the uFlags argument has
CMF_VERBSONLY set return 0 immediately.

HRESULT CMyMenu::QueryContextMenu (
HMENU hmenu, UINT uMenuIndex, UINT uidFirstCmd,UINT uidLastCmd, UINT uFlags )
{
if(uFlags & CMF_VERBSONLY)
{
DbgOut("CMF_VERBSONLY");
return 0;
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  shell