Control over registry operations in Windows and .NET applications

Cached and non-cached requests

When file read or write operation occurs, there are 3 possible "ways" the information goes:

  1. from the application to system cache
  2. from the cache to the file system
  3. from the application to the file system (bypassing the cache)
By default CallbackRegistry tracks operations (2) and (3) (so-called non-cached operations). To catch operation (1) you need to set ProcessCachedReadWriteCallbacks property to true.

To distinguish between "cached" and "non-cached" request you can use Cached parameter of OnReadFileC and OnWriteFileC callbacks.

Normally you don't need to care about cached requests at all so ProcessCachedReadWriteCallbacks is false by default.

Support for cached requests appeared in CallbackRegistry 2.2.

Back to top