Click here to Skip to main content
13,005,436 members (57,568 online)
Rate this:
Please Sign up or sign in to vote.
See more:

msdn suggest that Change Journals to use instead of ReadDirectoryW..
How to use this to monitor the directory..
Posted 23-Jan-13 18:18pm
Do you mean "how to use C"..?
aimdharma 24-Jan-13 0:49am
Then do yourself a favor, fix the title of the question... Can you see "Improve question"?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It is fully described here:[^].

All the operations are performed with Volume Management:[^].

When you mentioned "instead of...", you probably mean Microsoft advice about FindFirstChangeNotification or ReadDirectoryChangesW, which need the application to execute all the time and use system resource all the time. However, sometimes this is exactly what's needed, because the resource are used in an optimal way, due to the use of push technology. For understanding and discussion of the benefits, please see:[^],[^].

In contrast, Journal approach provides a very different, "show me the difference" approach, "compare before and after". Again, it has its benefit for some different purpose.

So, the conclusion is: it really depends on your ultimate goal. If you want an advice on making a choice, you would need to explain the ultimate purpose, in terms clear from your understanding or preoccupation with any ideas related to instrumental needs. Actually, I would advise to start any your questions with such explanation.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100