Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7974553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:24:21+00:00 2026-06-04T08:24:21+00:00

When i load dll in my process, how that dll resolve address of function

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:24:22+00:00Added an answer on June 4, 2026 at 8:24 am

    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 :

    When creating a DLL, the linker assumes that the DLL will load at a
    particular address. Certain pieces of the code and data contain
    hardcoded addresses that are only correct if the DLL loads at the
    preferred address. However, at runtime it’s possible that the
    operating system may have to load the DLL at a different memory
    location.

    To handle the situation where the OS has to move the DLL, the linker
    adds base relocations to the DLL. Base relocations are addresses that
    require modification so that they contain the correct address for
    where the DLL loaded in memory. The more base relocations a DLL has,
    the more time the OS needs to process them and to load the DLL. A
    properly based DLL loads at its preferred address, and can skip
    processing the base relocation records.

    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)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How is it possible that 64-bit process can load dll written in .net 1.1
Two Delphi programs need to load foo.dll, which contains some code that injects a
I've found a unit with functions that allow to Load a DLL directly from
How can I load a custom dll file in my web application? I've tried
I have a native C Dll that calls 'LoadLibrary' to load another Dll that
I have an ASP.NET page that requires data from another DLL and the process
I have compiled a JNI dll that I would like to load into my
I have a simple dll that is being injected into a target process using
I have a win32 dll that I inject into a running process in order
I have got a dll that I load in my program which reads and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.