Bewerken

Delen via


CcSetAdditionalCacheAttributes function (ntifs.h)

Call the CcSetAdditionalCacheAttributes routine to enable or disable read-ahead (also called "lazy read") or write-behind (also called "lazy write") on a cached file.

Syntax

void CcSetAdditionalCacheAttributes(
  [in] PFILE_OBJECT FileObject,
  [in] BOOLEAN      DisableReadAhead,
  [in] BOOLEAN      DisableWriteBehind
);

Parameters

[in] FileObject

Pointer to a file object for the cached file.

[in] DisableReadAhead

Boolean value set to TRUE to disable read-ahead, or FALSE to enable it.

[in] DisableWriteBehind

Boolean value set to TRUE to disable write-behind, or FALSE to enable it.

Return value

None

Remarks

CcSetAdditionalCacheAttributes can be called any time after calling CcInitializeCacheMap. Initially, both read-ahead and write-behind are enabled.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL

See also

CcInitializeCacheMap

CcReadAhead

CcSetReadAheadGranularity