Page 1 of 1

How to read system module's memory in WM 5.0

PostPosted: Mar 9, 2006 @ 8:59pm
by Broken Sword

PostPosted: Mar 9, 2006 @ 11:01pm
by joshbu [MSFT]
When you say "ring0" memory are you asking about kernel space memory?

On protected devices (all Smartphones, and some Pocket PCs,) applications are forbidden from reading or writing from the kernel space. It's a security risk.

What are you trying to do?

PostPosted: Mar 10, 2006 @ 6:46am
by mamaich
Use SetKMode(TRUE) - this would make your thread run in kernel mode.
In old days of WM2003[se] both user and kernel code ran in kernel mode, so each process could access kernel data.
In WM5 MS designed a more "secure" OS. That is why it recommends protecting kernel address space if the CPU supports it. And this is on by default (this is one of the reasons why WM5 is slower then previous OSes).
The SetProcPermissions(-1) may also help - this function allows you to access address space of other processes. Both these 2 functions are protected. But it is not a problem ;)

PostPosted: Mar 10, 2006 @ 11:21am
by StephC

PostPosted: Mar 13, 2006 @ 12:55am
by mamaich