Modifying region of memory - returns 0xCC VC++
问题 I am modifying some sections of an executable code compiled in a dll. But a single byte at a fixed address from the entire segment that I am modifying can't be changed, not even read. The code is very simple: SEGMENT_DATA segInfo = getSegmentInfo(mHandle, segmentName); if (segInfo.inFileSegmentAddr == 0) return false; DWORD mOlProtection; DWORD mOlProtection_1; if (segInfo.architecture != MY_ARCH) { printf(" Not the same architecture!\n"); return 0; } if(VirtualProtect((LPVOID)segInfo