Optional callback function. If present, OllyDbg calls it each time the user selected menu item added to menu by ODBG_Pluginmenu.
void ODBG_Pluginaction(int origin,int action,void *item);
Parameters:
origin - code of window that calls ODBG_Pluginaction. OllyDbg supports following codes:
Code | Cast item to | Who calls ODBG_Pluginmenu |
PM_MAIN | item is always NULL | Main window |
PM_DUMP | (t_dump *) | Any Dump window |
PM_MODULES | (t_module *) | Modules window |
PM_MEMORY | (t_memory *) | Memory window |
PM_THREADS | (t_thread *) | Threads window |
PM_BREAKPOINTS | (t_bpoint *) | Breakpoints window |
PM_REFERENCES | (t_ref *) | References window |
PM_RTRACE | (int *) | Run trace window |
PM_WATCHES | (1-based index) | Watches window |
PM_WINDOWS | (t_window *) | Windows window |
PM_DISASM | (t_dump *) | CPU Disassembler |
PM_CPUDUMP | (t_dump *) | CPU Dump |
PM_CPUSTACK | (t_dump *) | CPU Stack |
PM_CPUREGS | (t_reg *) | CPU Registers |
action - identifier of menu item (0..63), as set by ODBG_Pluginmenu;
item - pointer either to selected element of sorted data displayed in window or, in case of dump windows, pointer to dump descriptor, or NULL. You may need this element to carry out requested action.
See also: ODBG_Pluginmenu, Pluginaction, Plugingetvalue, Custom messages