Export (0) Print
Expand All

MmForceSectionClosed routine

The MmForceSectionClosed routine deletes the data and image sections for a file that is no longer in use.

Syntax


BOOLEAN MmForceSectionClosed(
  _In_  PSECTION_OBJECT_POINTERS SectionObjectPointer,
  _In_  BOOLEAN DelayClose
);

Parameters

SectionObjectPointer [in]

A pointer to a structure that contains the file object's section object pointers.

DelayClose [in]

A Boolean value that specifies whether the section is subsequently deleted if MmForceSectionClosed cannot delete the section synchronously (that is, prior to MmForceSectionClosed returning).

TRUE indicates that if MmForceSectionClosed cannot delete the section synchronously, MmForceSectionClosed sets a flag. With this flag set, when the section's outstanding reference count reaches zero, the memory manager deletes the section automatically.

FALSE indicates that if MmForceSectionClosed cannot delete the section synchronously, the section is not deleted.

Return value

MmForceSectionClosed returns TRUE if the sections were successfully deleted or no sections were found, FALSE otherwise.

Note  If there are one or more outstanding write probes on the file's data section, MmFlushImageSection returns FALSE.

Remarks

For more information about creating mapped sections and views of memory, see Sections and Views.

Requirements

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

< DISPATCH_LEVEL

See also

CcPurgeCacheSection
MmFlushImageSection

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft