Creating Thread or Process from Memorystream

delphi package - easy access to kernel objects etc.
Post Reply
r4id3n
Posts: 1
Joined: Mon Jan 24, 2005 5:43 pm

Creating Thread or Process from Memorystream

Post by r4id3n »

Hi there, is there any way to create a new Process or thread from just a Stream????

Like:

Code: Select all

procedure CreateProcess;
var MStream:TMemoryStream;
begin
    MStream:=TMemoryStream.create;
    MStream.LoadFromFile('MyFile.exe');
    CreateProcess(Mstream.memory);
Is there such a function /way ???

THX
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Sorry, but that's *very* difficult to realize. You can have a look at the UPX sources, but don't set your hopes high. Better look for an alternative solution.
Post Reply