public static bool IsPinnedToStartMenu(string executablePath) {
var Test = Directory.GetFiles(string.Format(UserPinnedStartMenuItemsPath, Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)), "*.lnk");
return Test.Any(pinnedShortcut => new ShellLink(pinnedShortcut).Target == executablePath);
}
public static void PinUnpinToTaskbar(string filePath) {