|
-
Sep 9th, 2006, 11:49 AM
#1
Thread Starter
PowerPoster
[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!
-
Sep 10th, 2006, 01:22 AM
#2
Fanatic Member
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.
-
Sep 10th, 2006, 08:48 AM
#3
Thread Starter
PowerPoster
Re: [2.0] task manager
yeh, thought so but wasnt sure - thanks
-
Sep 11th, 2006, 11:34 AM
#4
Fanatic Member
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.
-
Sep 11th, 2006, 07:15 PM
#5
Fanatic Member
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.
-
Sep 12th, 2006, 10:47 AM
#6
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|