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));
 }
Beispiel #2
0
        protected override void GetChildItems(string path, bool recurse)
        {
            ShellItem   item   = GetItemCore(path);
            ShellFolder folder = item as ShellFolder;

            if (folder == null)
            {
                WriteItemObject(item, path, false);
                return;
            }
            foreach (var child in folder.GetChildItems())
            {
                WriteItemObject(child, child.ParsePath, child is ShellFolder);
            }
        }
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }