CcGetFileObjectFromBcb function (ntifs.h)
Given a pointer to a pinned buffer control block (BCB) for a file, the CcGetFileObjectFromBcb routine returns a pointer to the file object that the cache manager is using for that file.
Syntax
PFILE_OBJECT CcGetFileObjectFromBcb(
[in] PVOID Bcb
);
Parameters
[in] Bcb
Pointer to the pinned BCB.
Return value
Pointer to the file object, or NULL if the file is not cached or is no longer cached.
Remarks
The file object pointer is guaranteed to remain valid as long as the BCB exists.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for