Click here to Skip to main content
15,921,694 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hello ! I am trying to increase the difficulty of my program to get runtime readed(not necessarily dumped). I made a huge google search, and i found VirtualProtect(and VirtualProtectEx) methods which can set the memory protection option to PAGE_NOACCESS or other options. Is this the right way to prevent a program/user to read the memory at runtime ?

What I have tried:

I searched in google and i found VirtualProtectEx and virtual protect methods.
Posted
Updated 16-Feb-17 22:26pm

1 solution

See VirtualProtectEx function (Windows)[^]. This only works for Virtually allocated memory.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900