다음을 통해 공유


DeleteStaticMapping (Windows Embedded CE 6.0)

1/6/2010

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 mapped area 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
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Kernel Functions

Concepts

Kernel Mode APIs
Virtual Memory Layout: Windows CE 5.0 vs. Windows Embedded CE 6.0

Other Resources

Developing a Device Driver
User Mode Driver Framework
Memory Addressing
NKCreateStaticMapping
OEMAddressTable