Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++ Memory on read/write in VEH

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Full Metal Jacket
Newbie cheater
Reputation: 0

Joined: 11 Jul 2013
Posts: 14

PostPosted: Thu Jan 05, 2017 4:51 pm    Post subject: C++ Memory on read/write in VEH Reply with quote

Hi. I'm just learning to use vectored exception handlers. Could someone explain me how can I do like Cheat Engine does - set breakpoint on write/read and catch it in VEH and show which instruction accessed this address?


Code:
LONG __stdcall VectoredHandler2(_EXCEPTION_POINTERS *ExceptionInfo)
{
   
   PVOID ExceptionAddress = ExceptionInfo->ExceptionRecord->ExceptionAddress;
   
   return EXCEPTION_CONTINUE_EXECUTION;
}
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Jan 06, 2017 1:22 am    Post subject: Reply with quote

You can view Cheat Engines source code of its VEH debugging stuff here:
https://github.com/cheat-engine/cheat-engine/tree/master/Cheat%20Engine/VEHDebug

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Fri Jan 06, 2017 5:13 am    Post subject: Reply with quote

If you feel more comfortable looking at c ++ code there is also this :
https://bitbucket.org/evolution536/crysearch-memory-scanner/src/3eda8d0a1b8fbc5e2b526b5f627a647a35d07fc7/CryVEHDebugger/?at=master

MSDN doc :
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680657(v=vs.85).aspx
Back to top
View user's profile Send private message
Full Metal Jacket
Newbie cheater
Reputation: 0

Joined: 11 Jul 2013
Posts: 14

PostPosted: Sat Jan 07, 2017 12:16 am    Post subject: Reply with quote

Thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites