ragdog Posted October 2, 2008 Posted October 2, 2008 (edited) HiI 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 notI 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 October 2, 2008 by ragdog
Killboy Posted October 2, 2008 Posted October 2, 2008 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
revert Posted October 3, 2008 Posted October 3, 2008 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
ragdog Posted October 3, 2008 Author Posted October 3, 2008 HiI need a function to get text or add text from an existing Olly listview windowexample patches window from ollyThanks for you replygreets
revert Posted October 3, 2008 Posted October 3, 2008 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...
ragdog Posted October 3, 2008 Author Posted October 3, 2008 (edited) 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 October 3, 2008 by ragdog
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now