Log in

View Full Version : Breakpoint problem


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

blabberer
September 26th, 2005, 07:45
never used eudora but if it has an architecture that supposrts plugin
writing then have you tried asking around the user forums
if there is a neater way than mucking into disassembly of eudora ??
some times some features are neatly hidden in some apis of those plugin
that wont be visible to first time plugin writers

may be you could try searching around here if there exist a solution
://eudorabb.qualcomm.com/

hope you get an easy answer instead of disassembling and poring over the whole app