Being able to turn on/off MemoryProtection with in code. like in following pseudoe code:
Code: Select all
begin
memory_protection_off;
patch_memory;
memory_protection_on; // << this should also generate a new hash over the memory
.. go on with patched code ..
end
I am still using an older Delphi version to code some tools and inside it using FastMM4as memory manager and some other libraries that would patch certain memory locations at startup to make faster functions availabe for all other routines used later on.
This however is not working together with the MemoryProtection from VMP as it would see this as a cracking/hacking attempts. It would be nice to have something in VMP that would let me turn on MemoryProtection after I have finished my patching in the hope that some kind of new HASH is generated that the function would check against it.
Actually I have no details on how this HASH is generated (maybe when applying the protection) but if it is done on startup, it would be optimal to reinit this to make use of this very important function after all.
Sorry my English is not that good and I hope I could express myself in a way you could understand it.