Allocating and accessing physically contiguous memory in user mode in WinCE 6.0 Beta



Hi,

I'm currently working in 6.0 Beta.

I want to allocate a physically contiguous memory chunk for my
application. Earlier in 5.0, I could easily do it through
AllocPhysMem()/MmMapIoSpace() calls. But now in 6.0, these calls don't
work in User mode.

One approach I tried was by developing a Kernel mode memory allocator
driver which allocates the contiguous chunk. But the virtual address I
get through that is valid in Kernel space only and I'm unable to use it
in the application space. I have tried
SetProcPermissions()/ReadProcessMemory() type of calls but to no avail
!

If anyone has faced this issue before and know the solution, would be
great if he can share that.

thanks and regards,
Somraj Mani

.



Relevant Pages


Loading