Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DLL

DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpcareer
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hph
    wrote on last edited by
    #1

    hi, is someone familiar with manipulating PE/COFF Files. I need to add a DLL into the import Table, but that's a damned hard job. One of my problems is, that i can't create a valid Relative Virtual Address (RVA). I need help. Thanks in advance!

    A J 2 Replies Last reply
    0
    • H hph

      hi, is someone familiar with manipulating PE/COFF Files. I need to add a DLL into the import Table, but that's a damned hard job. One of my problems is, that i can't create a valid Relative Virtual Address (RVA). I need help. Thanks in advance!

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      what is the problem with it? Don't try it, just do it! ;-)

      H 1 Reply Last reply
      0
      • H hph

        hi, is someone familiar with manipulating PE/COFF Files. I need to add a DLL into the import Table, but that's a damned hard job. One of my problems is, that i can't create a valid Relative Virtual Address (RVA). I need help. Thanks in advance!

        J Offline
        J Offline
        JWood
        wrote on last edited by
        #3

        Microsoft may not want you tampering with their binaries, there may be safeguards in there, too. J. ----------------------------

        1 Reply Last reply
        0
        • A Alexander M

          what is the problem with it? Don't try it, just do it! ;-)

          H Offline
          H Offline
          hph
          wrote on last edited by
          #4

          There are a few problems. Number 1: You can't simply add as much DLL Entries as you want into the Import Table, without changing the rva's of the following sections. Number 2: You have to find a place in the .exe/.dll file which is mapped into the memory Number 3: The place must be big enough to hold every needed information, such as the name of the dll you want to add Number 4: You must calculate a valid RVA for the position where the name of the DLL is located. Number 5: ... Number 4 seems not to be the last point to pay attention for, because if you fixed every mentioned problem, it still won't work! :mad: Do you know a better solution ? Thanks in advance!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups