コード例 #1
0
 public void Open()
 {
     Assert.Inconclusive("TBA");
     using (var shortcut = new Shortcut())
     {
         shortcut.Open(string.Empty);
         shortcut.Open(string.Empty, new IntPtr(), CompulsoryCat.Shell.Shortcut.EShellLinkResolveFlags.SLR_ANY_MATCH);
         shortcut.Open(string.Empty, new IntPtr(), CompulsoryCat.Shell.Shortcut.EShellLinkResolveFlags.SLR_ANY_MATCH, 0);
     }
 }
コード例 #2
0
 public void ShortcutProperties()
 {
     using (var shortcut = new Shortcut())
     {
         Assert.Inconclusive("We enumerate all properties but don't check they work.");
         shortcut.ShortCutFile = "A";
         var largeIcon = shortcut.LargeIcon;
         var smallIcon = shortcut.SmallIcon;
         shortcut.IconPath         = "B";
         shortcut.IconIndex        = 0;
         shortcut.Target           = "C";
         shortcut.WorkingDirectory = "D";
         shortcut.Description      = "E";
         shortcut.Arguments        = "F";
         shortcut.DisplayMode      = Shortcut.LinkDisplayMode.edmMaximized;
         shortcut.HotKey           = Keys.A;
     }
 }
コード例 #3
0
 public void ShortcutProperties()
 {
     using (var shortcut = new Shortcut())
     {
         Assert.Inconclusive("We enumerate all properties but don't check they work.");
         shortcut.ShortCutFile = "A";
         var largeIcon = shortcut.LargeIcon;
         var smallIcon = shortcut.SmallIcon;
         shortcut.IconPath = "B";
         shortcut.IconIndex = 0;
         shortcut.Target = "C";
         shortcut.WorkingDirectory = "D";
         shortcut.Description = "E";
         shortcut.Arguments = "F";
         shortcut.DisplayMode = Shortcut.LinkDisplayMode.edmMaximized;
         shortcut.HotKey = Keys.A;
     }
 }
コード例 #4
0
 public void Open()
 {
     Assert.Inconclusive("TBA");
     using (var shortcut = new Shortcut())
     {
         shortcut.Open(string.Empty);
         shortcut.Open(string.Empty, new IntPtr(), CompulsoryCat.Shell.Shortcut.EShellLinkResolveFlags.SLR_ANY_MATCH);
         shortcut.Open( string.Empty, new IntPtr(), CompulsoryCat.Shell.Shortcut.EShellLinkResolveFlags.SLR_ANY_MATCH, 0 );
     }
 }