共用方式為


MmForceSectionClosed 函式 (ntifs.h)

MmForceSectionClosed 例程會刪除不再使用之檔案的數據和影像區段。

語法

BOOLEAN MmForceSectionClosed(
  [in] PSECTION_OBJECT_POINTERS SectionObjectPointer,
  [in] BOOLEAN                  DelayClose
);

參數

[in] SectionObjectPointer

結構的指標,其中包含檔案對象的區段對象指標。

[in] DelayClose

布爾值,指定如果 MmForceSectionClosed 無法同步刪除區段,則指定是否後續刪除區段(也就是在傳回 MmForceSectionClosed 之前)。

TRUE 表示如果 MmForceSectionClosed 無法同步刪除區段,MmForceSectionClosed 設定旗標。 設定此旗標時,當區段的未處理參考計數達到零時,記憶體管理員會自動刪除區段。

FALSE 表示如果 MmForceSectionClosed 無法同步刪除區段,則不會刪除區段。

傳回值

MmForceSectionClosed 如果成功刪除區段或找不到區段,FALSE,則傳 回 TRUE

注意 如果檔案的數據區段上有一或多個未完成的寫入探查,MmFlushImageSection 會傳回 false
 

言論

如需建立記憶體對應區段和檢視的詳細資訊,請參閱 區段和檢視

要求

要求 價值
目標平臺 普遍
標頭 ntifs.h (include Ntifs.h)
連結庫 NtosKrnl.lib
DLL NtosKrnl.exe
IRQL < DISPATCH_LEVEL

另請參閱

CcPurgeCacheSection

mmFlushImagesection