예제 #1
0
 public static string GetTitle(Shortcut.IShellLink link)
 {
     try
     {
         var ps = (WindowProperties.IPropertyStore)link;
         using (var pv = new WindowProperties.PropVariant())
         {
             ps.GetValue(ref PKEY_Title, pv);
             return((string)pv.GetValue());
         }
     }
     catch (Exception e)
     {
         Util.Logging.Log(e);
     }
     return("");
 }