Windows lets you configure guard pages where you get notified on access, normally used to detect stack growth and such. Although that should be an easy and normal thing to avoid for av/cheats.
https://learn.microsoft.com/en-us/windows/win32/memory/creat...