You can find pinned apps in: %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and for the start menu apps go to: %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu 上述两个分别是锁定到任务栏的快捷方式的文件夹和开始菜单的快捷方式的文件夹,很有意思的…
其实很简单,使用 API 函数 ShellExecute,就可以解决这个问题. 首先添加引用 using System.Runtime.InteropServices; 代码如下: using System; using System.Runtime.InteropServices; namespace WINLOCK { public class APIHelper { [DllImport("shell32.dll")] public static extern IntPtr Sh…