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. function forwarding in a DLL

function forwarding in a DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 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.
  • F Offline
    F Offline
    Fad B
    wrote on last edited by
    #1

    Hi, I have a dll witch staticlty linked with the kernel32.dll and I need to replace all the calles of the CreateFile function to another DLL (like hook) but I'm tring to do it by changing the binary PE of the dll. I'm using MS Detour, but I did not find a compleate documentation. Any one could help me? :rose:

    K 1 Reply Last reply
    0
    • F Fad B

      Hi, I have a dll witch staticlty linked with the kernel32.dll and I need to replace all the calles of the CreateFile function to another DLL (like hook) but I'm tring to do it by changing the binary PE of the dll. I'm using MS Detour, but I did not find a compleate documentation. Any one could help me? :rose:

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      It sound not good to link staticly. Maybe there is some design error. X| (Do you like debugging???;P) It´s better to link dynamicly or call the API. There is better portability and that seems to be your problem. Try this @ home. (B&B)

      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