--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/324df3d6-3434-47f1-8a33-a26b2cbc5ca4n%40googlegroups.com.
Thank you a lot for your contribute.
You are right, that's not the best way to get the same struct on every call. So I changed my code. Now I'm trying to get the parameters in module_load_eventSo I have an app_pc towrap that I retrieved by using dr_get_proc_address and now I want to fill the drsym_func_type_tdrsym_error_t error = drsym_get_func_type(mod->full_path, ??, buffer, 128, &func_type);drwrap_wrap(towrap, New_advapi32_GetUserNameA_pre, NULL);But I have no idea on how to get the modoff argument to pass to drsym_get_func_type.
Thank you for your help!--Il giorno venerdì 21 ottobre 2022 alle 08:20:46 UTC-7 Derek Bruening ha scritto:I assume you located the address of the function to wrap using a module_data_t which has the path and base. You would want to do the symbol lookup then, once, and not inside every dynamic execution. If you really wanted to re-lookup on every call you could pass in the data or re-query dr_lookup_module_by_name() or whatnot.On Thu, Oct 20, 2022 at 11:29 PM Don “donky” Ky <michele....@gmail.com> wrote:Hi!
I'm trying to build a Dynamorio client.
I want to get the number of arguments and their types into the pre_func_cb of drwrap_wrap .
So I understood that I had to call:
drsym_get_func_type (const char *modpath, size_t modoffs, char *buf, size_t buf_sz, drsym_func_type_t **func_type)But I have no idea how to get the *modpath and the modoffs arguments from there.
Could anyone help me?Thank you in advance!--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/324df3d6-3434-47f1-8a33-a26b2cbc5ca4n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/e014d49d-c16e-4170-bf54-05886c9aae61n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/9c5b358b-44c5-41a1-83f3-b33470625075n%40googlegroups.com.