Insertwatch

OllyDbg Plugin API

Insertwatch

Inserts new watch before the watch with specified 1-based index and updates watch window. Returns number of watches after new watch is inserted, or -1 on error.

int Insertwatch(int indexone,char *text);

Parameters:

indexone - 1-based index of existing watch. If this index exceeds total number of existing watches, new watch will be added to the end of the watch table;

text - new watch expression to insert.

See also: Deletewatch, Getwatch