Re: "Manually" load an Exe
- From: "MaxMax" <none@xxxxxxxx>
- Date: Thu, 20 Oct 2005 21:57:14 GMT
> Then create new thread with new stack reserve size (XP, on 2k (and NT?)
> you have to use native functions)
Yeah... One idea was to create a new thread and suspend the original one.
This WAS a solution.
Do you know how do I call the entry point of the exe? I have its address (in
the AddressOfEntryPoint). How should I call it? Perhaps I could "cheat"... I
know the format of the Entry Point of CRT is
int WINAPI WinMainCRTStartup(void);
so I could simply make a pointer to function and call it...
Then I could hijack GetModuleHandle to return the "new" handle (the fake
one) to the program. Mmmh... seems feasible. And then I'll have to check how
the system load the resources from the "current" process.
--- bye
.
- Follow-Ups:
- Re: "Manually" load an Exe
- From: qfel
- Re: "Manually" load an Exe
- From: Scherbina Vladimir
- Re: "Manually" load an Exe
- From: Alexander Grigoriev
- Re: "Manually" load an Exe
- References:
- "Manually" load an Exe
- From: MaxMax
- Re: "Manually" load an Exe
- From: qfel
- Re: "Manually" load an Exe
- From: MaxMax
- Re: "Manually" load an Exe
- From: qfel
- "Manually" load an Exe
- Prev by Date: Re: "Manually" load an Exe
- Next by Date: About UDF
- Previous by thread: Re: "Manually" load an Exe
- Next by thread: Re: "Manually" load an Exe
- Index(es):
Relevant Pages
|