I am new to this forum and new to c++ but I have a question so please bear with me.
The situation is this:
I have a .dll file with some code in it and I have an .exe which I can't alter. I want the code inside my .dll to be performed when the .exe starts.
Is it possible to permanently link my .dll to the .exe somehow without another .exe?
If it is not possible without another .exe(2), is it possible to link this other .exe(2) with the .exe(1) I can't change so that the .exe(2) starts when the other .exe(1) starts?
I really hope anyone can help me with this problem.
Someone told me it might be possible with regsvr32.exe?
do you mean you dont have the source code for it? or you are not allowed to modify even the assembly code for it?
------------------------------------------------------------------------------------------------
you dont have the source code / it is okey to modify the assembly code for the exe
you can use a code cave and made a call for loadlibrary...
you cant touch the exe and you want your dll to be loaded or your exe to run
make a bat file and start the two exes, then all you need to do is run the bat file instead of exe(1)... if it is a dll that you want to load then use a DLL injector
you dont want to modify the exe at all, and you dont want to use dll injector nor a batch file
well... you can see what dlls/APIs an exe call with some kind of PE tool (PE inspector for example / function tab) and then made a modified version of any dll that the exe load using code caves to load your dll... and place it in the same folder as exe(1)