Author |
Topic |
|
jgrizzel
4 Posts |
Posted - 16 Sep 2008 : 16:37:13
|
I found an executable in our shop entitled "720040-11081_dumpMem.exe". Where is the the source to this. I wanted to snatch some ideas from it. Thanks |
|
akidder
1519 Posts |
Posted - 17 Sep 2008 : 06:35:48
|
I don't know if I can locate the source to that app right offhand, but I think I remember what it does.
If you want to be able to read physical memory addresses, you'll need to use VirtualAlloc and VirtualCopy. Take a look at the CFBus test app at topic 1638, which performs just this function.
Let us know if there is some other aspect of DumpMem you're interested in. I hope this helps. |
|
|
ctacke
877 Posts |
Posted - 17 Sep 2008 : 09:25:07
|
If you plan on using it for CE 6.0, keep in mind that that VirtualAlloc and VirtualCopy are no longer available outside the kernel, so this technique won't work without writing a kernel-mode driver. |
|
|
jgrizzel
4 Posts |
Posted - 17 Sep 2008 : 10:48:47
|
Thanks, BTW - the dumpMem is kind of a misnomer. it really was a peak and poke of any address 8/16/32 data sizes. It is an MFC GUI frontend. I had a glance at the PCMCIA and CF code, and looks kind of straightforward (better than others I have available), will dig deeper later. Oh, I am happy to say we won't be migrating to 6.0 on this project, I realize it is a new OS paradigm, at this point, that is about all I know. Thanks again |
|
|
beitman
63 Posts |
Posted - 17 Sep 2008 : 13:31:00
|
Dumpmem is very simple:
1. Get physical address from user 2. Map a virtual address to the physical address 3. Read/write the data 4. Unmap the virutal address
I would use MmMapIoSpace() instead of VirualAlloc()/VirtualCopy(). MmMapIoSpace() is much easier to use. |
|
|
|
Topic |
|