#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
Quote:
"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.
__________________
EnJoy! |
The Following User Gave Reputation+1 to Jupiter For This Useful Post: | ||
giv (09-30-2013) |
#3
|
||||
|
||||
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... |
The Following User Gave Reputation+1 to ferrit.rce For This Useful Post: | ||
giv (09-30-2013) |
#4
|
||||
|
||||
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; BR, quygia128 |
The Following User Gave Reputation+1 to quygia128 For This Useful Post: | ||
ferrit.rce (10-02-2013) |
#5
|
||||
|
||||
Hey quygia128,
Not a bad idea, I'm gonna try it Thanks! Ferrit |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Olly pdk 1.08 | ragdog | General Discussion | 4 | 01-05-2014 21:16 |
Olly Question | blaklite | General Discussion | 7 | 02-19-2011 05:39 |
Olly & .NET | peleon | General Discussion | 8 | 06-21-2007 09:13 |
Olly BPM | apex | General Discussion | 1 | 02-25-2005 15:02 |