Reputation: 4587
Is there any Win32 API function for monitoring a particular area in a program's virtual memory. For example, a notification message's spawn if there's a read/write operation upon the area.
Upvotes: 2
Views: 787
Reputation: 26171
You want to use guard pages along with VirtualQuery (probably in a loop) for monitory memory regions, for code sections you'd need to use HW or SW (INT3
) breakpoints, this requires writing a small, mini-debugger, such as this tutorial shows.
Upvotes: 5