Share via


DeleteStaticMapping (Compact 2013)

3/28/2014

This function deletes a static virtual memory address that maps to a physical address. This function is callable from user code, but not from the OEM adaptation layer OAL. This function is callable from kernel-mode drivers and user-mode drivers.

Syntax

BOOL DeleteStaticMapping(
  LPVOID pVirtBase,
  DWORD dwSize
);

Parameters

  • pVirtBase
    [in] Virtual address to delete. The address passed in must be right-shifted by 8.
  • dwSize
    [in] Size of area to delete, in bytes, starting from pVirtBase.

Return Value

TRUE indicates success.

Remarks

Once CreateStaticMapping is called, the virtual memory created is active until the device reboots or DeleteStaticMapping is called.

To do this from the OEM Application Layer, call the OAL version of the function, NKDeleteStaticMapping.

Requirements

Header

pkfuncs.h

Library

Nkstub.lib

See Also

Reference

Kernel Functions

Other Resources

User Mode Driver Framework
NKCreateStaticMapping
OEMAddressTable