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()); } }
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(); } }