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 7806653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:36:18+00:00 2026-06-02T02:36:18+00:00

What I have done so far: I found it in the AfxCodeHook.pas unit by

  • 0

What I have done so far:

I found it in the AfxCodeHook.pas unit by Aphex.

I have also skimmed a bunch of interesting sample codes using it:

  • Inject Library (how to inject a DLL into another process).
  • Inject Library Ex (how to inject a DLL into another process using the Ex method).
  • Create Process Ex (how to inject a DLL into a created process using the Ex method).
  • Inject Executable (InjectLibraryEx’s true power: the ability to inject EXE files).
  • Simple Api Hooking (how to use afxcodehook to manipulate calls to windows apis).

I have also read:

  • Embarcadero’s RAD Studio help entry on Image base address and
  • Base address page in Wikipedia.

Question:

I seek for an informed opinion and a simple explanation of the {$IMAGEBASE $13140000} directive in Layman’s Terms from seasoned Delphi coders.

  • 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-02T02:36:20+00:00Added an answer on June 2, 2026 at 2:36 am

    This specifies the preferred base address of the DLL. If the DLL can be loaded at this address, then the loader will do so. If it cannot, then it needs to be relocated and all the absolute jumps in the DLL need to be adjusted to the new address.

    When the loader attempts to map a DLL into a process address space, it first reads the preferred base address. Then it works out the size of the DLL. Finally it checks to see if a contiguous block of memory stretching from the base address to the base address + size can be found. If so then the DLL is loaded at the preferred base address. If another DLL, or the exe resides at the preferred base address, then the DLL will need to be relocated. If the application has reserved heap memory that overlaps with the preferred DLL load address space, then the DLL will need to be relocated.

    If a DLL needs to be relocated then its physical pages cannot be shared between processes. The Windows system DLLs have carefully chosen base addresses to ensure that there are no collisions and that they can be shared.

    Nowadays, Address Space Layout Randomization (ASLR) complicates matters even further.

    You can learn more from these articles:

    • Dr. Dobbs: Rebasing Win32 DLLs
    • Peering Inside the PE: A Tour of the Win32 Portable Executable File Format
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not done any animation stuff with iphone development so far. Can anybody
Have done some research and found some stuff that may be helpful. I would
I have done some research, and majority of the examples I have found use
I have done this operation millions of times, just using the + operator! I
I have done various tests and I have found that the jQuery validate function
I have done XML parsing before but never on a massive scale. If I'm
I Have done a site but want to redirect it to another subdomain in
I have done a hide and show of a div element, on clicking a
I have done simple java app for blackberry, while building am getting following error.
i have done something like this: <form action=validate.php method=get> Id :<input type=text name=pID/><br/><br/> Name

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.