CcGetFileObjectFromSectionPtrsRef

CcGetFileObjectFromSectionPtrsRef routine

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.

Syntax


PFILE_OBJECT CcGetFileObjectFromSectionPtrsRef(
  _In_ PSECTION_OBJECT_POINTERS SectionObjectPointer
);

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.

Requirements

Target platform

Universal

Version

Available in Windows Vista and later versions of the Windows operating system.

Header

Ntifs.h (include Ntifs.h or Fltkernel.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

See also

CcGetFileObjectFromSectionPtrs
ObDereferenceObject
SECTION_OBJECT_POINTERS

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft