The current valid data length (VDL) for a cached file is retrieved with the FsRtlQueryCachedVdl routine.
NTSTATUS FsRtlQueryCachedVdl( _In_ PFILE_OBJECT FileObject, _Out_ PLONGLONG Vdl );
The file object to retrieve the cached VDL for.
A pointer to a caller supplied value which receives the VDL.
FsRtlQueryCachedVdl returns STATUS_SUCCESS if the cached VDL is obtained successfully for the FileObject specified. Otherwise, another appropriate NTSTATUS value is returned.
The FsRtlQueryCachedVdl routine will return the VDL for a full span file region. This is a region beginning at an offset of 0 and having a length of MAXLONGLONG.
|Windows version||Available in starting with Windows 8. Available in starting with Windows 8.|
|Header||ntifs.h (include Ntifs.h)|