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 


MmIsAddressValid instead of __try?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Wed May 18, 2011 10:57 pm    Post subject: MmIsAddressValid instead of __try? Reply with quote

I've been doing some research on how the driver works, and I stumbled across the memory routines of the driver where I found the API MmIsAddressValid. MmIsAddressValid checks if a page fault would occur if we read / write from the virtual address specified.

Quote:

The MmIsAddressValid routine checks whether a page fault will occur for a read or write operation at a given virtual address.


So my question is, would using MmIsAddressValid be a faster and more convenient way to check if addresses are read/writable then trying to read the address and handling a possible exception?
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu May 19, 2011 2:37 am    Post subject: Reply with quote

yes even though that function is not recommended for use. also at a driver level there are far better ways of performing the tasks you are after
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