您当前的位置: 首页 >  c#

c#通过纯代码创建桌面快捷方式、创建程序菜单项、将网页添加到收藏夹

发布时间:2013-03-14 17:52:58 ,浏览量:0

c#通过纯代码创建桌面快捷方式、创建程序菜单项、将网页添加到收藏夹

本文章源代码Src下载地址:http://download.csdn.net/detail/testcs_dn/5141580

开始菜单》程序菜单项:

添加到收藏夹:

相关函数代码:

public const int SW_SHOWNORMAL = 1;
        ////// 创建快捷方式。
        //////快捷方式路径。///目标路径。///工作路径。///快捷键描述。public static bool CreateShortcut(string shortcutPath, string targetPath, string workingDirectory, string description, string iconLocation = null)
        {
            try
            {
                CShellLink cShellLink = new CShellLink();
                IShellLink iShellLink = (IShellLink)cShellLink;
                iShellLink.Se
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    109769博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.1610s