Writememory

OllyDbg Plugin API

Writememory

Modifies memory of debugged process, optionally removing INT3 breakpoints, broadcasting memory changes and removing analysis data. Returns size of actually modified memory. Currently, this is either size or 0 if memory cannot be written at once.

ulong Writememory(void *buf,ulong addr,ulong size,int mode);

Parameters:

buf - pointer to buffer with new contents of memory;

addr - address of memory in the memory space of debugged application;

size - size of new contents;

mode - mode of operation, combination of following bits:

MM_RESTORE Remove INT3 breakpoints in the modified area and broadcast memory changes
MM_DELANAL Wipe off analysis in the modified area
MM_SILENT On error, don't display error message box

See also: Readmemory