View Single Post
  #2  
Old 06-15-2005, 15:04
bilbo bilbo is offline
Friend
 
Join Date: Jul 2004
Posts: 103
Rept. Given: 36
Rept. Rcvd 15 Times in 12 Posts
Thanks Given: 15
Thanks Rcvd at 17 Times in 11 Posts
bilbo Reputation: 15
Yes, it's true.
Try playing with VirtualProtectEx() using PAGE_GUARD as new access protection.
Any following attempt to read from or write to a guarded page causes the system to raise a STATUS_GUARD_PAGE exception.

Anyway, I don't think that if you raise an exception at every memory access you will be faster than emulating the CPU or single stepping through your code...

Best regards, bilbo
Reply With Quote