View Single Post
  #1  
Old 12-05-2025, 16:54
jonwil jonwil is offline
VIP
 
Join Date: Feb 2004
Posts: 399
Rept. Given: 2
Rept. Rcvd 21 Times in 9 Posts
Thanks Given: 2
Thanks Rcvd at 67 Times in 35 Posts
jonwil Reputation: 21
How to add code to dll?

I have a Windows x86 .dll file (specifically its a mixed mode Managed C++ and Native C++ dll if that makes a difference) and I want to add some new code and data
to that dll including adding the necessary entries to the .reloc segment. What's the best way to do that?

The code and data I want to add is already in a different version of the same .dll as binary assembler instructions (obviously I would need to fix up the addresses to point to the right places in the dll I am modifying) and I don't need to touch the managed side of things.
Reply With Quote