DeleteStaticMapping (Compact 2013)
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.
BOOL DeleteStaticMapping( LPVOID pVirtBase, DWORD dwSize );
[in] Virtual address to delete. The address passed in must be right-shifted by 8.
[in] Size of area to delete, in bytes, starting from pVirtBase.
TRUE indicates success.
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.