次の方法で共有


CcIsFileCached macro

The CcIsFileCached macro determines whether a file is cached or not.

Syntax

BOOLEAN CcIsFileCached(
  [in] PFILE_OBJECT FileObject
);

Parameters

  • FileObject [in]
    Pointer to a file object for the file.

Return value

CcIsFileCached returns TRUE if the file is cached, FALSE otherwise.

Remarks

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.

 

Requirements

Target platform

Desktop

Version

Supported starting with Windows 2000.

Header

Ntifs.h (include FltKernel.h or Ntifs.h)

See also

CcInitializeCacheMap

FILE_OBJECT

 

 

Send comments about this topic to Microsoft