Thank you so much for sharing the code!
One more question. My intention was to use this code to run an application which updates the DLL and then runs the main application from a single EXE. The initial application updates DLLs and then executes from the memory stream the main application. The problem is that if I run the main application from within the EXE I get antivirus alert that trojan DelfInject.gen is active. Is it possible to avoid the triggering of this virus detection?
One more question. My intention was to use this code to run an application which updates the DLL and then runs the main application from a single EXE. The initial application updates DLLs and then executes from the memory stream the main application. The problem is that if I run the main application from within the EXE I get antivirus alert that trojan DelfInject.gen is active. Is it possible to avoid the triggering of this virus detection?