Beispiel #1
0
 private IdList GetPidlFromPath(string path, SFGAO queryForAttributes, out SFGAO attributes)
 {
     path = path.TrimEnd('\\');
     if (path == "")
     {
         ShellFolder desktopFolder = ShellFolder.DesktopFolder;
         attributes = desktopFolder.GetAttributes(queryForAttributes);
         return(desktopFolder.Pidl);
     }
     return(IdList.Parse(path, queryForAttributes, out attributes));
 }