Hi, all

I want to set a memory to execute only but can not to be read and write. I found the PAGE_EXECUTE is the flag of VirtualProtect can do it. But i set the flag to my process memory, it is not effective! I can read the memory still.

How can i set a memory to be execute only but can not to be read?

Help me.

Thanks.