When i load dll in my process, how that dll resolve address of function that it imports ?
I tried to set breakpoint on GetProcAddress and LdrGetProcedureAddress but it doesnt break there.
Please someone explain.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the DLL is loaded the loader will update all addresses if required to reflect the base address where the DLL is loaded.
http://msdn.microsoft.com/en-us/magazine/bb985014.aspx :
It’s more common these days that a DLL’s base address is randomized as a security measure, the above article predates that. Also see:
Relocation (Wikipedia)
Portable Executable (Wikipedia)