CONTEXT ctx;
ctx.ContextFlags = CONTEXT_ALL; // I want to see all registers
GetThreadContext(pi.hThread, &ctx); // Now I see the register
ctx.Eax = newEntryPoint; // Changing EAX register
SetThreadContext(pi.hThread, &ctx) // Returns 1 (nonzero is success);
Running on a 32bit process, changing EAX to another 32bit process.
The remote thread is suspended (since it was created) while I work on it.
Looking at the registers using windbg shows that the value remains the same.
I'm not sure where the problem is. Thank you for your time.
EDIT: Nevermind. It's only windbg. The values do change. Thankyou.