ODBG_Plugincmd

OllyDbg Plugin API

ODBG_Plugincmd

Optional callback function. If present, OllyDbg will call it each time the debugged application pauses on conditional logging breakpoint that specifies commands to be passed to plugins. Each command is passed to every plugin that exports ODBG_Plugincmd, so plugin must decide by itself whether it should execute command or not. For example, sample command line plugin accepts all commands that begin with a point. If plugin recognizes command, it must return 1 to stop OllyDbg from passing it to remaining plugins. Otherwise, it must return 0.

int ODBG_Plugincmd(int reason,t_reg *reg,char *cmd);

Parameters:

reason - reason why program was paused, currently always PP_EVENT;

reg - pointer to registers of thread that caused application to pause, may be NULL;

cmd - null-terminated command to plugin.