Jump to content
Tuts 4 You

Help with olly Pdk


ragdog

Recommended Posts

Hi

I need help for my OllyPlugin i read in the Pdk from olly this

*****

Returns pointer to element with specified index in sorted data sorted by actual criterium, or NULL on error. If necessary, function actualizes associated index table, so preliminary call to Sortsorteddata is not necessary. Function is very useful for extraction of selected element in table windows.

void* Getsortedbyselection(t_sorted *sd,int selection);

Parameters:

sd - pointer to descriptor of sorted data;

selection - zero-based index in data sorted by selected sort criterium.

*****

I know it gives the bookmark example in masm32, i under stand this source not

I need a function for get the listview items of a olly window and add listview items.

Can any post a better example please?

Regards,

ragdog

Edited by ragdog
Link to comment

Olly's data functions are pretty confusing...

I once tried getting all the loaded modules but I got lost with all the different structs and data lists.

Found a different solution, so - no, I can't really help you there :(

Link to comment

Not sure if I understand the question correctly. Do you want to add an item to an existing Olly window or do you want to create a completely new window?

Have a look at Stollystruct, it contains code how to create a new window in masm.
/>http://www.tuts4you.com/download.php?view.1275

Link to comment

Hi

I need a function to get text or add text from an existing Olly listview window

example patches window from olly

Thanks for you reply

greets

Link to comment

Hi,

This snippet should give you the currently selected line (patch) from the patches window.

Every Olly window is based on a t_table structure that describes the window (scrollbars, columns,...)

A member of that structure is a t_sorted stucture. It it this structure that you need to provide to the api's (Getsortedbyselection, Addsorteddata, Deletesorteddata,... ) to manipulate the items in the window.

	t_table* table = NULL;
table = (t_table*)Plugingetvalue(VAL_PATCHES);
if(table != NULL)
{
int selected = table->data.selected;
t_patch* patch = Getsortedbyselection(&table->data, selected);
if(patch != NULL)
{
// Your code here
}
}

Although I would not try to directly manipulate Olly's internal data structures if I was you...

Link to comment

Thanks

I understand no c++ ;)

I have found and read a other source from LCB-Plugin (c++)

This source use only the Plugingetvalue(VAL_BREAKPOINTS) and Findname Api from olly

for get item from a olly listview

Can any this part convert in masm Please?

Regards,

ragdog

Edited by ragdog
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...