If I have a function foo() and I want to use VirtualProtectEx() to change the property of a variable which is in the function foo().
Like this VirtualProtectEx( GetCurrentProcess(), p, sizeof(DWORD), PAGE_READONLY, &old);
当我确定“PAGE_READONLY”并对其进行汇编时,该群人将显示接触受到侵犯的情况。
如果我确定“PAGE_READWRITE”,它将成功执行。
What s the problem?