Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Olly PDK question (https://forum.exetools.com/showthread.php?t=15272)

ferrit.rce 09-26-2013 16:04

Olly PDK question
 
Hi,

I'm developing a plugin for Olly2 with the PDK and I have a question to that.
I would like to get the selection ( startposition -> endposition ) of the dump window in C/C++. I've tried several things but didn't find any useful info.

For the disassembler window there is a dedicated function "Getcpudisasmdump" but nothing for dump. Could comebody help?

Thanks in advance!

Ferrit

Jupiter 09-30-2013 04:28

Quote:

Originally Posted by ferrit.rce (Post 87055)
For the disassembler window there is a dedicated function "Getcpudisasmdump" but nothing for dump.

// Offtopic
"Getcpudisasmdump" looks/sounds like "Eyjafjallajökull", Ice cap of Iceland ;D

Which PDK docs do you use?
http://ollydbg.de/Help/i_Sorteddata.htm ?
AFAIK, PDK for 2.01 Final wasn't released yet.

ferrit.rce 09-30-2013 05:20

I'm using the unofficioal from the sample_plugins

Seems like this function doesn't exist and will be hopefully in the official available.
Because of that I've hardcoded the necessary address in the OllyExt code. I know it's ugly but this code will be replaced if PDK comes... :D

quygia128 09-30-2013 22:04

hi ferrit.rce,

I don't use Sorteddata as bookmask plugin, but this code work (Delphi code)

Code:

var
        startsl, endsl: DWORD;
       
function  ODBG2_Plugindump(pd: P_dump;s: PWChar;mask: PWChar;n: LongInt;select: PInteger;addr: ULong;column: LongInt): LongInt; cdecl;
Begin
  if (column = DF_FILLCACHE) then begin
    if pd.menutype = DMT_CPUDUMP then begin
      startsl:= pd.sel0; // Start position
      endsl:= pd.sel1;  // End position
        end else
    if pd.menutype = (DMT_CPUDASM or DMT_FIXTYPE) then begin
                // CPU DISASM
    end else
    if pd.menutype = DMT_CPUSTACK then begin
                // CPU STACK
    end;
  end else
  if (column = TSC_MOUSE) then begin
    //
  end else
  if (column = DF_FREECACHE) then begin
    //We have allocated no resources, so we have nothing to do here.
  end;
  Result:= 0;
end;

Try and hope :-p

BR,
quygia128

ferrit.rce 10-02-2013 18:46

Hey quygia128,

Not a bad idea, I'm gonna try it :)

Thanks!

Ferrit


All times are GMT +8. The time now is 05:05.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX