Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I want to modify an imported function of dll file to exported function, please help me to do this, I want to use OllyDbg to modify it, which factor of imported function can do this (edit to exported function)? Thanks.
Posted

1 solution

Modify?! Wow! Listen to yourself properly to understand that it makes no sense. If you import a function F from A into B, the code does not physically exist in B. What are you going to modify?

Now, the purpose of having anything exported from B is always having F called somewhere else, let's say, in C. So, consider 1) linking A in C directly and calling F in C, 2) creating a "thunk" function F' in B, linking and calling F' in C. As F is visible in B because A is linked to B, F' should simply call F with the same very parameters and transparently return the call to the caller of F'.

—SA
 
Share this answer
 
v4
Comments
Espen Harlinn 15-Mar-11 12:05pm    
Ahh, a 5 - but did you seriously expect OP to get it?
Sergey Alexandrovich Kryukov 15-Mar-11 13:04pm    
Yes, sure. OP has enough fantasy as he thought of modification of something in DLL.
It's only A, B, C.
--SA
Sergey Alexandrovich Kryukov 15-Mar-11 13:05pm    
Andrew,

As some working people express concern about your understanding of this :-), but I bet you get it, I would like to emphasize that you're quite welcome to ask follow-up questions.
:-) :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900