Is it possible to use a executable (EXE) as a DLL file in your application.
Some kind of WIN32 API for this?
I’m not trying to detour any functions or patch anything to the file itself.
Something like LoadLibaray for EXE (well I know LoadLibaray loads the whole dll anyways, so if a eqivanlent loads whole exe I don’t mind as long as it doesn’t call main method to start the program up)
Since I have this program which does alot of work but I don’t really want to load it all up.. it’s huge.. I just want to call a few functions from inside of it is it possible?
LoadLibaray for EXE?
Can’t really rip the functions out of the EXE as it’s over 23,000~ lines of assembly and split in 160 functions.
Unfortunately you can’t do this. You can only reference DLLs if you are using Visual Studio. But if you are using csc.exe to compile your C# code, you can use the /R parameter and reference executables, but this is achieved through command line.