The CcIsFileCached macro determines whether a file is cached or not.
- FileObject [in]
Pointer to a file object for the file.
CcIsFileCached returns TRUE if the file is cached, FALSE otherwise.
To cache a file, use CcInitializeCacheMap.
Note Because multiple file objects can refer to the same file (that is, data stream), it is possible for the CcIsFileCached macro to return TRUE given a non-cached file object if another cached file object refers to the same data stream. In other words, if there is a set of file objects that refer to the same data stream and if at least one of the file objects in the set is cached, CcIsFileCached will return TRUE for all file objects in the set.
|Supported starting with Windows 2000.|
Build date: 11/16/2013