CcGetFileObjectFromSectionPtrsRef - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

PFILE_OBJECT CcGetFileObjectFromSectionPtrsRef(
  [in] PSECTION_OBJECT_POINTERS SectionObjectPointer
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-ccgetfileobjectfromsectionptrsref)

CcGetFileObjectFromSectionPtrsRef function

Description

When passed a pointer to a SECTION_OBJECT_POINTERS structure for a cached file, the CcGetFileObjectFromSectionPtrsRef routine returns a pointer to the file object that the cache manager is using for the cached file.

Parameters

SectionObjectPointer [in]

A pointer to the SECTION_OBJECT_POINTERS structure that is associated with the cached file.

Return value

A pointer to the file object for the cached file, or NULL if the file is not cached or is no longer cached.

Remarks

The file object is returned with a reference. The caller is responsible for calling ObDereferenceObject on the file object when it has finished using the file object.

See also

CcGetFileObjectFromSectionPtrs

ObDereferenceObject

SECTION_OBJECT_POINTERS