you gonna need to update the addys 
but I am not using it anymore)BYTE nop = 0x90; DWORD d, ds; VirtualProtect((LPVOID)(CShell+0x85723), 17, PAGE_EXECUTE_READWRITE, &d); for (int i=0; i<17;i++) memcpy((LPVOID)(CShell+0x85723+i), &nop, 1); VirtualProtect((LPVOID)(CShell+0x85723), 17, d, &ds);

FARPROC MessageBoxA_Addr = GetProcAddress(GetModuleHandleA("user32.dll"), "MessageBoxA");
*(WORD*)(MessageBoxA_Addr = 0x9090; // error, memory protection is PAGE_EXECUTE only!
DWORD dwOld; VirtualProtect(MessageBoxA_Addr, 2, PAGE_EXECUTE_READWRITE, &dwOld);//Allow read, write, execute access for first 2 bytes *(WORD*)(MessageBoxA_Addr = 0x9090; //will not make error VirtuallProtect(MessageBoxA_Addr, 2, dwOld, &dwOld); //restore old protection