Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey! So, i have a main application, a 3rd party app and a dll with code that when executed will msgbox("Yey"). How can i call the function in the dll from the main app when its injected into the 3rd party app? thank you :)
Posted
Updated 19-Aug-14 3:42am
v2
Comments
Kschuler 19-Aug-14 9:26am    
What do you mean by "injects it into a process."? What exactly are you trying to do?
Member 11017040 19-Aug-14 9:31am    
It injects the DLL's code into another process, but i dont know how to call the code.
Kschuler 19-Aug-14 9:34am    
Call the code from where? The program that injected it? Or are you trying to get the program that you've injected the dll into to call it? Maybe you could just explain a bit more about what you are trying to do...because it sounds a bit shady.
Member 11017040 19-Aug-14 9:36am    
I have a main application(my own), a 3rd party app and a dll. the dll has a function called "Testing" that when called is supposed to msgbox("Yey"), however i dont know how to call the function when the DLL is injected into the 3rd party app. Ive been sucsessfull in injecting it so its inside the app, but i have no idea how to call the functions.
Kschuler 19-Aug-14 9:39am    
I've never done anything with injecting a DLL into another process, so I can't really help you. But you should click the Improve question link and add this information to your original question. It's much clearer with this information. And you'll be much more likely to get a response from someone who actually knows about these things. Good luck.

1 solution

Well, you have a problem. Managed code cannot be injected into a foreign process. Only unmanaged code supports that.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Aug-14 16:37pm    
5ed. I think the real OP's problem is the general goals and incentives for programming. Please see the recent comments. The beginner trying to get something "cool" because it is perceived as "cool" is most certainly wasting time.
—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