How to run unmanaged executable from memory rather than disc

前端 未结 4 1272
梦如初夏
梦如初夏 2020-12-15 12:23

I want to embed a command-line utility in my C# application, so that I can grab its bytes as an array and run the executable without ever saving it to disk as a separate fil

4条回答
  •  难免孤独
    2020-12-15 12:29

    This is explicitly not allowed in Vista+. You can use some undocumented Win32 API calls in XP to do this but it was broken in Vista+ because it was a massive security hole and the only people using it were malware writers.

提交回复
热议问题