CcIsThereDirtyDataEx function (ntifs.h)

The CcIsThereDirtyDataEx routine determines whether a volume contains any files that have dirty data in the system cache.

Syntax

BOOLEAN CcIsThereDirtyDataEx(
  [in]           PVPB   Vpb,
  [in, optional] PULONG NumberOfDirtyPages
);

Parameters

[in] Vpb

A pointer to a volume parameter block (VPB) for the volume.

[in, optional] NumberOfDirtyPages

An optional pointer to an unsigned long buffer that receives the number of dirty pages on the volume (associated with the Vpb parameter).

Return value

The CcIsThereDirtyDataEx routine returns TRUE if the volume contains one or more cached files whose data has been modified in the cache, but not yet flushed to disk. Otherwise, this routine returns FALSE.

Remarks

This routine will return TRUE if any dirty pages exist including temporary files (CcIsThereDirtyData ignores temporary files). It will also return TRUE if there is any data currently queued to the volume.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Universal
Header ntifs.h (include Ntifs.h, FltKernel.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

CcFlushCache

CcIsThereDirtyData

CcPurgeCacheSection