if(VirtualProtect(LPVOID(0x401000),3543191,PAGE_EXECUTE_READWRITE,&OldProtect)) 3543191,how to calate the number? Please advise.
This number is the size, so all the region in the range 0x401000 + 3543191 will be set with the privilege PAGE_EXECUTE_READWRITE. See : https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Last edited by brunohkbx; 31-10-15 at 06:10 PM.