Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Run an app that loaded to ram

Run an app that loaded to ram

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A_Fa
    wrote on last edited by
    #1

    Greetings to all friends. I want to develop an application that decrypt an exe file format and save it in RAM and then run it . Developed application does not allow the save decryption output to a file. To run an exe application that is loaded to RAM I have no idea. Please guide me. Thanks to all friends

    L _ C 3 Replies Last reply
    0
    • A A_Fa

      Greetings to all friends. I want to develop an application that decrypt an exe file format and save it in RAM and then run it . Developed application does not allow the save decryption output to a file. To run an exe application that is loaded to RAM I have no idea. Please guide me. Thanks to all friends

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      As far as I am aware, there is no Windows function that allows you to do this. The LoadLibrary function[^] can load a module from file storage into memory, so that you can execute it directly, but there is no facility for loading direct from RAM.

      Veni, vidi, abiit domum

      1 Reply Last reply
      0
      • A A_Fa

        Greetings to all friends. I want to develop an application that decrypt an exe file format and save it in RAM and then run it . Developed application does not allow the save decryption output to a file. To run an exe application that is loaded to RAM I have no idea. Please guide me. Thanks to all friends

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Windows, like most modern operating systems, uses virtual memory to execute a program. In this scheme, only data that needs to be modified is loaded into RAM. Read-only data and code are directly mapped from disk and not loaded into RAM. The best that you can do is create a RAM disk and save the output to a file on the RAM disk. To a program, this RAM disk would be very similar to an ordinary disk drive. Here is a list of of available RAM drive software - List of RAM drive software[^]

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++) (October 2009 - September 2013)

        Polymorphism in C

        1 Reply Last reply
        0
        • A A_Fa

          Greetings to all friends. I want to develop an application that decrypt an exe file format and save it in RAM and then run it . Developed application does not allow the save decryption output to a file. To run an exe application that is loaded to RAM I have no idea. Please guide me. Thanks to all friends

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Fasten your seat belt and read this article: "Loading a DLL from memory"[^].

          Veni, vidi, vici.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups