Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB Serious Problem

Posted on 2003-11-18
5
Medium Priority
?
266 Views
Last Modified: 2010-04-17
I want the source code for extracting and running an exe file from memory (ram). Few wrapping app's use this method
0
Comment
Question by:sriharish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 9776314
If I understand you correctly, you want to find an exe as it resides in RAM?
0
 
LVL 1

Author Comment

by:sriharish
ID: 9776383
Thats Right
0
 
LVL 9

Accepted Solution

by:
bhagyesht earned 500 total points
ID: 9776404
0
 
LVL 22

Expert Comment

by:cookre
ID: 9776591
If one could freeze RAM at the instant just before a EXE gets control, it MIGHT be possible to reconstruct something similar to the original disk copy of the EXE, but it's unlikely.  It would be possible with a .COM file, since that's an image file, but an EXE is far from an image file.

For example, some memory allocation and initialization is performed by the OS as part of the load process.  Once the loading is complete, you wouldn't be able to tell if a particular address range was originally valued in the EXE of if it was allocated by the OS by virtue of a res.  Shoot, even the starting address doesn't appear in RAM - that's obtained by the OS from the original EXE and control simply passed there after loading is complete.

Now that I've thought about it, I'd say you won't be able to reconstruct an EXE file from what you find in RAM.

0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9776620
"I'd say you won't be able to reconstruct an EXE file from what you find in RAM" I agree with you cookre. besides in windows it may not be loaded at the one go conideering dlls and other issues
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question