CcIsThereDirtyDataEx 函数 (ntifs.h)
CcIsThereDirtyDataEx 例程确定卷是否包含系统缓存中具有脏数据的任何文件。
语法
BOOLEAN CcIsThereDirtyDataEx(
[in] PVPB Vpb,
[in, optional] PULONG NumberOfDirtyPages
);
参数
[in] Vpb
指向卷的卷参数块 (VPB) 的指针。
[in, optional] NumberOfDirtyPages
指向无符号长缓冲区的可选指针,该缓冲区接收卷 (上与 Vpb 参数) 关联的脏页数。
返回值
如果卷包含一个或多个缓存文件,其数据已在缓存中修改,但尚未刷新到磁盘, 则 CcIsThereDirtyDataEx 例程返回 TRUE 。 否则,此例程返回 FALSE。
注解
如果存在任何脏页(包括临时文件 (CcIsThereDirtyData 忽略临时文件) ),此例程将返回 TRUE。 如果当前有任何数据已排队到卷,则它还将返回 TRUE 。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows Vista |
目标平台 | 通用 |
标头 | ntifs.h (包括 Ntifs.h、FltKernel.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |