api - What does the function VirtualProtect from Kernel32 do? -


im reverse engineering file , came across line of code

call dword ptr ds:[3f1010] 

and ollydbg's comment line is, kernel32.virtualprotect

the question function do? did own research bout function in msdn still can't understand clearly. mean memory or virtual page (whatever call it) protects not readable in ollydbg?

virtualprotect, changes protection options (i.e. way application allowed access memory) of memory region allocated virtualallocate or other memory functions. there many protection options available - readonly, readwrite, execute, of them etc. check them in msdn.

as rule, when memory allocated, has of these protection options assigned. if 1 wants change them later - virtualprotect function need use.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -