How can I run an executable from RAM using C++?

前端 未结 5 1816
一整个雨季
一整个雨季 2021-02-09 06:42

How can I run an executable from RAM using C++?

The executable is in RAM, and I know the address, how do I call into the program from mine?

5条回答
  •  温柔的废话
    2021-02-09 07:01

    The same way you would run it from disk. Your program doesn't know whether it's already loaded (i.e. in RAM) or on disk. This is abstracted away by the operating system.

提交回复
热议问题