Bewerken

Delen via


MmResetDriverPaging function (wdm.h)

The MmResetDriverPaging routine resets the pageable status of a driver's sections to that specified when the driver was compiled.

Syntax

void MmResetDriverPaging(
  [in] PVOID AddressWithinSection
);

Parameters

[in] AddressWithinSection

A pointer to a virtual address in the driver (for example, the address of the DriverEntry routine).

Return value

None

Remarks

MmResetDriverPaging causes those routines that would not normally be pageable, to be locked into memory. Hence, image sections such as .text and .data will be locked in memory if this routine is called.

A driver that calls this routine must do so before enabling interrupts on its device.

A call to MmPageEntireDriver is not a prerequisite to calling this routine. However, calls to MmResetDriverPaging do nothing if the driver's image-section attributes have never been overridden by a call to MmPageEntireDriver.

For more information about paging an entire driver, see Making Drivers Pageable.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), IrqlMmApcLte(wdm)

See also

MmLockPagableCodeSection

MmLockPagableDataSection

MmLockPagableSectionByHandle

MmPageEntireDriver

MmUnlockPagableImageSection