Re: How to execute a program from memory

From: Doublehp (doublehp_at_doublehp.org)
Date: 08/17/04


Date: 17 Aug 2004 09:33:44 -0700


> Why not just use one of the variants of WinExec() or CreateProcess()?

because those func need either a file or a func to be executed .

> Just copying the contents of a Windows PE executable into memory does
> not make it ready to run. Are you resolving links to DLLs, and
> loading those as necessary? Are you performing all of the
> relocations, setting up the segment registers, allocating a virtual
> address space?

Many software can do so, like the proprietary Winzip selfextractor for
executables, or the GNU/UPX ...

What ever the requirements are, I need to run an executable from
memory.



Relevant Pages

  • Re: How to execute a program from memory
    ... > Why not just use one of the variants of WinExec() or CreateProcess()? ... because those func need either a file or a func to be executed. ... executables, or the GNU/UPX ... ...
    (comp.programming)
  • Re: How to execute a program from memory
    ... > because those func need either a file or a func to be executed. ... I suspect DoubleHP is suggesting the same thing. ... > executables, or the GNU/UPX ... ... duplicating the work of the loader, which has no API, and so can remap memory ...
    (comp.programming)
  • Re: dlopen, dlsym usage
    ... do not for executables. ... This is because func() is not exported from the executable by default. ... Read up on the -rdynamic flag (with which you must link the exe ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.programmer)
  • Re: How to launch a exe file in SD card?
    ... a graphics shell. ... Personally I prefer CreateProcess ... for the executables or ShellExecute for the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: CreateFile executable file types
    ... If you give a poor thing any bogus file with ".com" extension, ... The .js extension is on my PATHEXT. ... I guess you are talking about CreateProcess(), ... executables work: when CreateProcessunderstands that the executable is ...
    (microsoft.public.win32.programmer.kernel)

Loading