共用方式為


FltCloseSectionForDataScan 函式 (fltkernel.h)

FltCloseSectionForDataScan 例程會關閉與檔案數據流相關聯的區段物件。

語法

NTSTATUS FLTAPI FltCloseSectionForDataScan(
  [in] PFLT_CONTEXT SectionContext
);

參數

[in] SectionContext

要關閉之區段內容的指標。

傳回值

FltCloseSectionForDataScan 會傳回STATUS_SUCCESS或適當的 NTSTATUS 值,例如下列其中一項。

傳回碼 描述
STATUS_INVALID_PARAMETER
區段內容未正確建立。 設定區段內容必須先傳遞至 FltCreateSectionForDataScan。 這是錯誤碼。
STATUS_NOT_FOUND
區段內容已經關閉。

言論

迷你篩選程式會使用 FltCloseSectionForDataScan 例程,從檔案物件解除分配和移除區段內容。 所有先前配置的區段內容都必須傳遞至 FltCreateSectionForDataScan才能傳遞至 FltCloseSectionForDataScan。 否則,小型篩選程式可以呼叫 FltReleaseContext 如果區段內容是使用 FltAllocateContext 配置,但未使用 FltCreateSectionForDataScan建立區段。

FltCloseSectionForDataScan 傳回之後,篩選管理員將不會同步處理與 sectionContext 所述的區段衝突的作業。

要求

要求 價值
最低支援的用戶端 從 Windows 8 開始,即可使用 FltCloseSectionForDataScan 例程。
目標平臺 普遍
標頭 fltkernel.h (包括 Fltkernel.h)
連結庫 FltMgr.lib
IRQL <= APC_LEVEL

另請參閱

FltAllocateContext

FltCreateSectionForDataScan

FltDeleteContext