Fuel
September 26th, 2005, 06:58
Hi,
What i am trying to do is this:
i am developing an Eudora plugin in C++ but Eudora does not offer any function to get the currently selected email in the mail-folder window.
my plugin puts a button on Eudora toolbar, which (when pressed) needs to process the currently selected email;
in eudora, each email has an ID; i need to know what is the currently selected email ID;
for this, i was thinking to see how actually Eudora read the currently selected email;
i add to toolbar the standard Eudora button "Mark current message as unread"; now, the message which comes to the main Eudora window is a WM_COMMAND with wParam=0x0000805B (id of toolbar button)
the next step will be to see in the dissambly code how Eudora puts the message as 'unread' (and more specific how it gets the currently selected email) but its too hard for me;
what i did was to put the breakpoint to WM_COMMAND on the main window proc, but after this, when runnning, the OllyDbg finishes the eudora process (it says about writing memory failure)
can anyone give me some hints with this ?
one solution is to actually use FindWindow to locate the listbox window with the mails, and get the currently selected item (the mail id is kept, as i saw in a sample, as item data) but i feel like it must be a better option
thank you
What i am trying to do is this:
i am developing an Eudora plugin in C++ but Eudora does not offer any function to get the currently selected email in the mail-folder window.
my plugin puts a button on Eudora toolbar, which (when pressed) needs to process the currently selected email;
in eudora, each email has an ID; i need to know what is the currently selected email ID;
for this, i was thinking to see how actually Eudora read the currently selected email;
i add to toolbar the standard Eudora button "Mark current message as unread"; now, the message which comes to the main Eudora window is a WM_COMMAND with wParam=0x0000805B (id of toolbar button)
the next step will be to see in the dissambly code how Eudora puts the message as 'unread' (and more specific how it gets the currently selected email) but its too hard for me;
what i did was to put the breakpoint to WM_COMMAND on the main window proc, but after this, when runnning, the OllyDbg finishes the eudora process (it says about writing memory failure)
can anyone give me some hints with this ?
one solution is to actually use FindWindow to locate the listbox window with the mails, and get the currently selected item (the mail id is kept, as i saw in a sample, as item data) but i feel like it must be a better option
thank you