// ntifs.h
VOID CcSetAdditionalCacheAttributesEx(
[in] PFILE_OBJECT FileObject,
[in] ULONG Flags
);
View the official Windows Driver Kit DDI referenceNo description available.
Call the CcSetAdditionalCacheAttributesEx routine to enable extended cache behavior on a cached file.
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.
CcSetAdditionalCacheAttributesEx can be called any time after calling CcInitializeCacheMap.
CcSetAdditionalCacheAttributes