How to execute an executable embedded as resource

前端 未结 3 2068
醉话见心
醉话见心 2021-02-07 21:13

Is it possible to execute an exe file that is included in the project as a resource? Can I fetch the file as a byte array and execute it in memory?

I don\'t want to writ

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 22:00

    A much better way is to create a temporary DLL file with FILE_FLAG_DELETE_ON_CLOSE attribute. This way the file will be deleted automatically when it is no longer used.

    I don't think there is a way to load DLL from a memory (rather than a file).

提交回复
热议问题