is there a better way to zero other process memory instead
call WriteProcessMemory with buffer full of zero?


Posted on 2004-07-27 06:54:46 by eko

I'm not sure about that, but as each process has its own address space, I think that the only way to write to another process memory is to call this API.

Posted on 2004-07-27 07:38:06 by Neitsa
you could inject code into the other process to do the clearing - probably not too nice. I guess the best way is WriteProcessMemory, probably in a loop if you need to zero a lot (writing a page or 64kb at a time).
Posted on 2004-07-27 07:54:50 by f0dder