LOULOU Posted December 29, 2005 Share Posted December 29, 2005 How finding the adress of a function in memory with api ? Thanks Link to comment Share on other sites More sharing options...
w0uter Posted December 29, 2005 Share Posted December 29, 2005 getprocadress ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
LOULOU Posted December 29, 2005 Author Share Posted December 29, 2005 getprocadress getProcAdress is for extracting adress in a dll. My problem is having memroy adress of a function launch inside an executable running Link to comment Share on other sites More sharing options...
Valik Posted December 29, 2005 Share Posted December 29, 2005 (edited) That's not something one typically does at run-time, mostly because it is more or less impossible.One of the compiler's many optimizations is it's ability to optimize away a function if the function is simple enough and nothing takes its address (At compile-time). This is called in-lining.Finding a function and knowing it is the function you are looking for is a non-portable exercise in futility. Each recompilation may produce different results so you have to figure out where the function is in memory all over again.Then we get to the fact that you have to figure out how to push arguments onto the stack and you may or may not have to clean the stack up depending on the calling convention used.So, in long, what you're doing is stupid so if you want some useful help, explain what you are trying to do and not what you are trying to do.Edit: Cleaned up text a little bit to make it more clear. Edited December 29, 2005 by Valik Link to comment Share on other sites More sharing options...
herewasplato Posted December 29, 2005 Share Posted December 29, 2005 ...explain what you are trying to do and not what you are trying to do.Or explain what you are trying to accomplish... not how you are hoping to accomplish it.You said, "How finding the adress of a function in memory with api ?"Why do you need to do this?What problem are you attempting to solve?Perhaps others can suggest a better way to accomplish the task at hand.Just asking... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
LOULOU Posted December 29, 2005 Author Share Posted December 29, 2005 What i want to do is to create a submenu in an existant menu. I find a programm writtem in Visual basic but this program use a vb function Indexof < this function allow to return the adress of a function written inside the executable. Hope that explain will give you so;e information aboutr what i want to do . Link to comment Share on other sites More sharing options...
herewasplato Posted December 29, 2005 Share Posted December 29, 2005 Thanks for the reply. Keep in mind that I cannot help you on this topic. I was just attempting to get more info so that others might be able to help you. Good luck to ya. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valik Posted December 29, 2005 Share Posted December 29, 2005 (edited) Or explain what you are trying to accomplish... not how you are hoping to accomplish it.Yes, thank you, that is what I meant.What i want to do is to create a submenu in an existant menu. I find a programm writtem in Visual basic but this program use a vb function Indexof < this function allow to return the adress of a function written inside the executable. Hope that explain will give you so;e information aboutr what i want to do .What did you not understand the last time I told you that AutoIt didn't support that kind of thing? AutoIt, like VB, is built on top of another language (C++) so it has some bridges between useful C++ behavior and the language itself. VB has those bridges; AutoIt doesn't. Edited December 29, 2005 by Valik Link to comment Share on other sites More sharing options...
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