Results 1 to 6 of 6

Thread: [2.0] task manager

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    [2.0] task manager

    is there some Win32 API I can use to get a list of opened folders? Process class will of course not do this, as it gets a list of running processes (programs) - not folders.
    Thanks!

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: [2.0] task manager

    I don't think that's possible. You don't open folders and you can't make a folder unreadable unless it's restricted by security policies, unlike a file which can be unreadable because a program is using it. You ask for a list of files and subfolders of a folder, but you never get a HANDLE for a folder like you do a file. Therefore Windows cannot track who is still using a directory.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: [2.0] task manager

    yeh, thought so but wasnt sure - thanks

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: [2.0] task manager

    But I think you can do that using ShDocVw COM component (if at all you are willing to) as the get_document() method of IWebBrowser gives you a reference to both HTML docs and the explorer windows. It has been quite a while since I used it, so don't have much re-collection how we did it.

  5. #5
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: [2.0] task manager

    How does using IWebBrowser allow you to determine what processes are using what directories on the hard drive?
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  6. #6
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: [2.0] task manager

    It won't tell you what processes are using what folders but you can get the list of all open Windows explorer windows and I thought that's what the OP wanted.
    Last edited by rjv_rnjn; Sep 12th, 2006 at 10:48 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width