Run exe other than from disk (or vdisk)

Run exe other than from disk (or vdisk)

Post by Jim Gabrie » Wed, 17 Nov 2004 10:45:33


Is it even possible to launch an application other than from or a virtual
disk? i.e. Is
it possible to stream a small exe back to an application and run that exe
WITHOUT EVER saving the stream first to disk and then running it? If so,
how
would you run it from memory?


Jim
 
 
 

Run exe other than from disk (or vdisk)

Post by Jochen Kal » Wed, 17 Nov 2004 15:33:02

Hi Jim Gabriel,


This was discussed many times.
The short answer: There is no documented way.


See:

http://www.yqcomputer.com/
&th=fb8258aae9cf114e&rnum=22

http://www.yqcomputer.com/
&rnum=6

http://www.yqcomputer.com/
&rnum=1

--
Greetings
Jochen

My blog about Win32 and .NET
http://www.yqcomputer.com/

 
 
 

Run exe other than from disk (or vdisk)

Post by Carl Danie » Wed, 17 Nov 2004 23:27:34


Nor even a straightforward but undocumented way. Running a program directly
from memory is hard.

-cd
 
 
 

Run exe other than from disk (or vdisk)

Post by Gnum » Thu, 18 Nov 2004 09:14:44

I can give a solution which works under DOS 3.1. It is basically relocating
pointers according to relocation table in EXE Header yourself. I'm not sure
if it will work under Windows... However as long as you are interested - you
may want to experiment with that.

Gnum
 
 
 

Run exe other than from disk (or vdisk)

Post by Gary Chans » Thu, 18 Nov 2004 15:00:13


It's *MUCH* more difficult to do this in Windows then it was in DOS.
Setting up the working environment in DOS was trivial while it's far from it
in Windows. In DOS, there were no DLLs to link to. Relocation is the least
of the complexities (and often not even necessary).

--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.yqcomputer.com/
XXXX@XXXXX.COM




relocating
sure
you


virtual
exe
so,
 
 
 

Run exe other than from disk (or vdisk)

Post by Gnum » Fri, 19 Nov 2004 08:55:31

I totally agree with you.
All my point was that there are two ways to accomplish it:
1. Ask Windows to do that for you
2. Try to do it yourself.

If 1. is not an option then 2. is only possible solution. Although if it's
too far from real possibility there is a third option:

3. Forget about it and find some other way to accomplish initial task.


Gnum



it
least
 
 
 

Run exe other than from disk (or vdisk)

Post by Jochen Kal » Fri, 19 Nov 2004 15:34:14

Hi Gnum,


And this is the best solution for this task.

--
Greetings
Jochen

My blog about Win32 and .NET
http://www.yqcomputer.com/
 
 
 

Run exe other than from disk (or vdisk)

Post by Mikko Noro » Fri, 19 Nov 2004 20:31:41

Hi,


As others have noted, there is no straightforward, nor documented way. But
if you really want to pursue this further, the following article should
help: Loading a DLL from Memory
http://www.yqcomputer.com/

Mikko Noromaa ( XXXX@XXXXX.COM )
- SQL in Excel, check out ExcelSQL! - see http://www.yqcomputer.com/ -