I have a non-.Net executable file that is included in my .net assembly as an embedded resource. Is there a way to run this executable that does not involve writing it out to disk and launching it?
This is .Net 2.0.
You can load a .NET assembly from a byte array using an overload of Assembly.Load .
However, there are implications for the security model that need to be considered which make things more complex. See the discussion here , and also this thread .
If your embedded executable is not .NET then I think you will have to write it out to disk first.
您可能会尝试将您的exe注入暂停的进程,然后唤醒被劫持的进程,但这似乎是灾难的一个秘诀。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.