本文实例讲述了C#实现将程序锁定到Win7任务栏的方法。分享给大家供大家参考。具体实现方法如下:
Win7Taskbar类:
using System;
using System.Collections.Generic;
using System.Text;
using Shell32;
using System.IO;
namespace TestWin7Taskbar
{
class Win7Taskbar
{
public static bool LockApp(bool isLock, string appPath)
{
Shell shell = new Shell()