// fltkernel.h
NTSTATUS FLTAPI FltCloseSectionForDataScan(
[in] PFLT_CONTEXT SectionContext
);
View the official Windows Driver Kit DDI reference
No description available.
The FltCloseSectionForDataScan routine closes a section object associated with a file stream.
SectionContext
[in]A pointer to the section context to close.
FltCloseSectionForDataScan returns STATUS_SUCCESS or an appropriate NTSTATUS value, such as one of the following.
Return code | Description |
---|---|
STATUS_INVALID_PARAMETER | The section context was not properly created. An allocated section context must first be passed to FltCreateSectionForDataScan. This is an error code. |
STATUS_NOT_FOUND | The section context is already closed. |
Minifilters use the FltCloseSectionForDataScan routine to deallocate and remove a section context from a file object. All previously allocated section contexts passed to FltCreateSectionForDataScan must be passed to FltCloseSectionForDataScan. Otherwise, minifilters can call FltReleaseContext if the section context was allocated with FltAllocateContext but no section was created with FltCreateSectionForDataScan.
After FltCloseSectionForDataScan returns, operations that conflict with the section described by SectionContext will not be synchronized by the filter manager.