-
From ini to LoadLibrary
Hey guys. I have created a ini file, inside I have nothing. I want the user to write there which DLL he would like to load. By default I have a DLL called Medit.dll that loads when the application opens, but I also want to open the dll that the user specified in the ini to load as well. =\ Can you guys help me out of point me somewhere? Thanks
-
You can use LoadLibrary with REadPrivateProfileString
but what you want to do with the library AFTER you load it?
-
Thanks, I will try that. I'm trying to do a loader, that will inject the Medit.dll. But I want the user to be able to add another dll to be injected. I got all the code ready, all I need is how to take the dll name that user set in the ini file.
-
GetPrivateProfileString - this is the correct function name for reading strings from ini-file
-
How are you going to GetProcAddress() the functions in an unknown dll?
How will you know what paramaters the functions take?
-
I suppose the replacing dll should export exactly the same interface as the dll it is going to replace...
-
So the new DLL has the same functions (I assume different functionality), with the same paramaters?
Why does it have a different name/path then?
Is it a bogus copy of the original DLL for some neferious / malicious reason?
If so why are we helping?