// ntifs.h
BOOLEAN CcIsThereDirtyData(
[in] PVPB Vpb
);
View the official Windows Driver Kit DDI referenceNo description available.
The CcIsThereDirtyData routine determines whether a mounted volume contains any files that have dirty data in the system cache.
Vpb [in]Pointer to a volume parameter block (VPB) for the volume.
CcIsThereDirtyData 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, FALSE otherwise.
CcIsThereDirtyData ignores temporary files.