CcGetFlushedValidData function (ntifs.h)
The CcGetFlushedValidData routine determines how much of a cached file has been flushed to disk.
Syntax
LARGE_INTEGER CcGetFlushedValidData(
[in] PSECTION_OBJECT_POINTERS SectionObjectPointer,
[in] BOOLEAN BcbListHeld
);
Parameters
[in] SectionObjectPointer
Pointer to a structure containing the file object's section object pointers.
[in] BcbListHeld
Reserved for system use. Must be FALSE.
Return value
If the entire file has been flushed, CcGetFlushedValidData returns the valid data length for the file. If there are dirty pages that have not been flushed to disk, CcGetFlushedValidData returns the starting byte offset of the lowest dirty page currently in the file. If the file is not cached or is no longer cached, MAXLONGLONG is returned in the quad part.
Remarks
The file system is responsible for ensuring that the value of SectionObjectPointer remains valid while in use. It is impossible for the cache manager to guarantee this.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 |
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |