// ntifs.h
VOID CcSetLogHandleForFile(
[in] PFILE_OBJECT FileObject,
[in] PVOID LogHandle,
[in] PFLUSH_TO_LSN FlushToLsnRoutine
);
View the official Windows Driver Kit DDI referenceNo description available.
The CcSetLogHandleForFile routine sets a log handle for a file.
FileObject [in]Pointer to the file object for the file for which the log handle is to be stored.
LogHandle [in]Pointer to the log handle that is to be stored.
FlushToLsnRoutine [in]Pointer to a log file flush callback routine to call before flushing buffers for this file. This routine is called to ensure that a log file is flushed to the most recent logical sequence number (LSN) for any buffer control block (BCB) being flushed. This routine is declared as follows:
typedef
VOID (*PFLUSH_TO_LSN) (
IN PVOID LogHandle,
IN LARGE_INTEGER Lsn
);
Pointer to an opaque structure that is used to identify this client.
This is the LSN that must be on the disk on return from this callback routine.
CcSetLogHandleForFile sets a log handle for a file, for use in subsequent calls to CcGetDirtyPages.