Advertisement

02.19.2004 at 04:26PM PST, ID: 20891467
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Monitoring file system changes

Asked by fl0yd in Windows Programming

Tags:

Hi all,

    I'm currently writing an application that simply displays available space on logical drives. The target platform is Win NT 5.0+. When I started I figured it would be easy, since the Windows API already has the FindFirstChangeNotification family of functions. However, along the way I ran into major difficulties, mainly because those API calls are rather limited. In particular, I'm having difficulty tracking remote drives as well as the current state of removable media devices.

    So here is the list of problems I'd like to get information on:

1) is there a similar API that allows to monitor remote drives? If there isn't I assume I'll have to use brute force and install a timer, but I'd rather not. (Btw, I haven't had a chance to test, but if anyone knows whether FindFirstChangeNotification works with remote drives hosted on Windows machines, I'd be happy to hear)

2) are there API calls that create notifications upon ejection/injection of removable media? I know that Total Commander (http://www.ghisler.com/) can track CD drives, but I don't know how it does it. Plus I came across some information involving DeviceIoControl with IOCTL_STORAGE_* control codes, but they only seem to be available on Win NT 5.01+

3) is there a way to find out what type a remote drive is? GetDriveType only returns DRIVE_REMOTE, no matter what physical device it's located on

4) is there a way to distinguish between different removable media drives? SHGetFileInfo returns different icons for floppy and zip drives, for example, so the OS must know about it. Can anyone confirm whether this functionality is also available through API calls?

5a) is there a method to request notifications upon connect/disconnect of hotpluggable devices, such as memory sticks?
5b) on a similar note, is there a way to monitor connection/disconnection of network drives?

    That's about it. I know, these are a lot of questions, and I'd be happy if someone could point me in the right direction to solve at least some of them. Also, if anyone has information on ways to accomplish what I need, which is only available on WinNT 5.01+ platforms, I'd also like to hear about them. I'm assigning 400 points for now, but if it comes out to be as difficult as I fear I'm willing to raise it in accordance with those that - hopefully - can help me out here.

Thank you very much for your time,

.fStart Free Trial
 
Loading Advertisement...
 
[+][-]02.20.2004 at 02:02AM PST, ID: 10410887

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows Programming
Tags: findfirstchangenotification
Sign Up Now!
Solution Provided By: Madshi
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.20.2004 at 07:20AM PST, ID: 10413016

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.24.2004 at 03:30PM PST, ID: 10445998

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2004 at 02:40PM PST, ID: 10464792

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.27.2004 at 03:32AM PST, ID: 10468258

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.29.2004 at 07:05AM PST, ID: 10480290

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2004 at 08:45PM PDT, ID: 10803455

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04.12.2004 at 07:40AM PDT, ID: 10805641

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2004 at 09:28AM PDT, ID: 10806460

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2004 at 06:33PM PDT, ID: 10838564

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32