For example, our application should extract another application from resources and run it. But that would not unpack it to run directly from the RAM.

  • Yes. Perhaps not every application, but definitely possible. - Vladimir Martyanov
  • Theoretically, yes, but in practice some things can prevent this, for example, DEP . - user239133
  • Need to run an application on .NET or normal? - VladD
  • This is about starting a regular application. - VladD

1 answer 1

Yes you can. At one time I was asked for this purpose, but then I realized that the game was not worth the while and did not begin to use the virtual disk.
Console is easier, as I understand it. Another thing, you should know at least something about the program. Here is the successful launch option.

But in general, get ready to "shovel" MSDN for such requests as "PE / COFF format", "MapViewOfFile", "PE relocation", etc.

  • one
    MapViewOfFile is completely optional, but what about COFF - it's not clear at all ... - Vladimir Martyanov
  • @ Vladimir Martiyanov Ok, slightly incorrect: PE / COFF - Viktor Tomilov
  • It is better to call him MZPE in general :-) - Vladimir Martyanov
  • one
    @ VladimirMartyanov My local MSDN issues 432 articles on COFF, PE / COFF 112 articles, only 4 on MZPE :) - Viktor Tomilov
  • @ViktorTomilov: The option for your link runs only .NET assemblies. - VladD