Re: "Manually" load an Exe

Tech-Archive recommends: Fix windows errors by optimizing your registry



> 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


.



Relevant Pages

  • Re: Suggestions for double-hashing scheme
    ... >>> Yeah, you have to be careful not to overdo it though. ... >>> any entry that isn't marked as deleted. ... >>> sequence may be part of another probe sequence. ... >> through any occupied or deleted cell in the hopes of finding the object. ...
    (comp.programming)
  • Re: Parameter query options...
    ... >Yeah, the field is open to any entry, which I know is a problem. ... >point it's going to be a major hassle to go back and clean that up so I was ... price at any software company in the world. ...
    (microsoft.public.access.queries)
  • Re: Display next to last results
    ... Yeah, that is a lot better than mine. ... > Microsoft Excel MVP ... >> If there are gaps in your data, ... >>> This formula works great to find the last entry in a col. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Switches to use C++ STL
    ... Yeah, thats it. ... I had to do one additional step though,but that was while linking just to ... get the CRT initialized I had to point the entry ...
    (microsoft.public.development.device.drivers)
  • Re: This whole fuel crisis highlights the need for a coherent gov agency
    ... playing free from barriers to entry, play referee and then GTFO. ... yeah - and to quit changing the rules every 20 minutes. ...
    (rec.sport.football.college)