CcSetAdditionalCacheAttributesEx routine

Call the CcSetAdditionalCacheAttributesEx routine to enable extended cache behavior on a cached file.

Syntax


VOID CcSetAdditionalCacheAttributesEx(
  _In_  PFILE_OBJECT FileObject,
  _In_  ULONG        Flags
);

Parameters

FileObject [in]

Pointer to a file object for the cached file.

Flags [in]

Behavior flags to set for FileObject. Currently, only the AGGRESSIVE_UNMAP_BEHIND flag is available. Setting this flag will allow the cache manager to optimize memory usage when modified writes are disabled for a file object.

Return value

None

Remarks

CcSetAdditionalCacheAttributesEx can be called any time after calling CcInitializeCacheMap.

Requirements

Target platform

Universal

Version

Available starting with Windows 8.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

CcSetAdditionalCacheAttributes
CcInitializeCacheMap

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft