Ejemplo n.º 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));
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }
Ejemplo n.º 4
0
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }