Access to information is restricted depending on your login. Request login-information through our contact form.



In Windows Embedded CE6 AllocPhysMem is only callable from kernel-space. The function OEM_AllocPhysMem is a workaround to use AllocPhysMem from user-space.
This function allocates physically contiguous memory.
See Platform-Builder-Help for details.

LPVOID OEM_AllocPhysMem(
  DWORD cbSize,
  DWORD fdwProtect,
  DWORD dwAlignmentMask,
  DWORD dwFlags,
  PULONG pPhysicalAddress


cbSize [in] Number of bytes to allocate. The physical memory allocated is rounded up to the nearest page and is aligned on a 64-KB address.

[in] Specifies the protection desired.

[in] Bit mask that describes the byte alignment needed. If it is set to zero, the default system alignment is used. If it is set to any other value, the kernel attempts to fulfill the memory request, based on the alignment request. The dwAlignmentMask parameter and a physical address determine whether the memory is aligned correctly for the request.

Reserved for future use. Must be set to zero.

[out] Pointer to a DWORD that stores the physical address of the memory allocation.

Return Values

A valid pointer indicates success. This pointer can't be used to access memory in CE6. Use OEM_MmMapIoSpace to map the physical-address to virtual-address-space.


OS Versions: Windows Embedded CE 6.
Header: drvlib_app.h
Link Library: drvlib_app.lib
added: 20.06.2008

Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
service/wince/drvlib/memory/oem_allocphysmem.txt · Zuletzt geändert: 2008/06/20 11:44 von