예제 #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));
 }
예제 #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);
            }
        }
예제 #3
0
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }
예제 #4
0
 public ShellPSDriveInfo(ShellFolder rootFolder, PSDriveInfo driveInfo)
     : base(driveInfo)
 {
     RootFolder = rootFolder;
 }