Inheritance: IDisposable
Beispiel #1
0
 public static string getLinkLocation(string path)
 {
     using (ShellLink link = new ShellLink())
     {
         link.Load(path);
         return(link.GetPath());
     }
 }
Beispiel #2
0
 public static IntPtr getLinkLocation(string path, Boolean resolve)
 {
     using (ShellLink link = new ShellLink())
     {
         link.Load(path);
         if (resolve)
         {
             link.Resolve();
         }
         return(link.GetIDList());
     }
 }
Beispiel #3
0
		public static string getLinkLocation(string path)
		{
			using (ShellLink link = new ShellLink())
			{
				link.Load(path);
				return link.GetPath();
			}
		}
 public static IntPtr getLinkLocation(string path, Boolean resolve)
 {
     using (ShellLink link = new ShellLink())
     {
         link.Load(path);
         if (resolve)
         {
             link.Resolve();
         }                
         return link.GetIDList();
     }
 }