ragdog Posted August 15, 2011 Posted August 15, 2011 (edited) I have plugin header converted to include for masm32 and my plugin works finebut i have a a problem with my 2 submenu entry with a one submenu works but not with 2Then WSTR is a macro for convert to unicodehave you an idea if this not works?Example Menu:OllyPluginExample-................- Options................-Aboutt_menu STRUCT Name1 DWORD ? ; Menu command help DWORD ? ; Explanation of command shortcutid DWORD ? ; Shortcut identifier, K_xxx menufunc DWORD ? ; Function that executes menu command submenu DWORD ? ; Pointer to descriptor of popup menu ;union t_menu index DWORD ? ; Argument passed to menu function hsubmenu DWORD ? ; Handle of pulldown menu ;ENDSt_menu ENDSWSTR PluginName,"OllyPluginExample"WSTR PluginInfo,"Plugin Info"WSTR PluginOption,"Options"WSTR PluginOptionInfo,"Option info"WSTR PluginAbout,"About"WSTR PluginAboutInfo,"About info";Menu command,;Explanation of command;Shortcut identifier, K_xxx;Function that executes menu command;Pointer to descriptor of popup menu;Argument passed to menu function;Handle of pulldown menuMainMenu t_menu <PluginName,PluginInfo,K_NONE,MenuHandler,Options ,0>Options t_menu <PluginOption, PluginOptionInfo,K_NONE,MenuHandler,NULL,1>About t_menu <PluginAbout,PluginAboutInfo,K_NONE,MenuHandler,NULL,2>;// Plugin menu that will appear in the main OllyDbg menu. Note that this menu;// must be static and must be kept for the whole duration of the debugging;// session.;static t_menu mainmenu[] = {; { L"Pluginname",; L"Plugin Info",; 0, MenuHandler, NULL, 0 },; { L"Option",; L"Option Info1",; 0, MenuHandler, NULL, 0 },; { L"|About",; L"About info",; 0, MenuHandler, NULL, 0 },; { NULL, NULL, 0, NULL, NULL, 0 };};Or can any translate it correct please?Thanks all Edited August 15, 2011 by ragdog
XeroNic (HS) Posted August 16, 2011 Posted August 16, 2011 I think 'OllyDbg2' plugin coding is very delicate work... If one menu is disappeared, check 't_menu' structure values of disappeared menu, In memory. If 't_menu' structure has invalid value, that menu is not work. good luck ~
diablo2oo2 Posted August 30, 2011 Posted August 30, 2011 ida_sigs_pluginmenu t_menu <uni$("Apply IDA Signatures"),uni$("Apply IDA Signatures Info"),K_NONE,MenuHandler,NULL,1> t_menu <uni$("About"),uni$("About info"),K_NONE,MenuHandler,NULL,2> t_menu <0,0,K_NONE,0,NULL,0>
ragdog Posted October 2, 2011 Author Posted October 2, 2011 HiI coding on a new olly2 plugin now ist the questionWhat for a olly api fill the listbox (matching labels) on the expressions dialog?Decodeadress convert a adress from jump or call to a symbolic namebefore i use Decode address must i find all jumps and callswas is the Olly api for itFindglobaljumpscallsto or Findlocaljumpscallsto?and how i can use this apis?Greets,
diablo2oo2 Posted October 2, 2011 Posted October 2, 2011 you can also ask this on the "official" ollydbg forum: http://www.woodmann.com/forum/forumdisplay.php?37-OllyDbg-Support-Forums
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now