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 


Check if pointer points

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Gi@nnis
Cheater
Reputation: 1

Joined: 26 Oct 2013
Posts: 32
Location: Greece

PostPosted: Fri Aug 08, 2014 4:33 pm    Post subject: Check if pointer points Reply with quote

How do I verify that a pointer point somewhere?

Lets say that I expect at [esi+18] to be a pointer. But for some reason 1/1000 times there isn't one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Aug 08, 2014 4:48 pm    Post subject: Reply with quote

usually check if it's NULL (0)
Code:

cmp [esi+18],0
je nopointer


but if it can be random garbage then you're out of luck. You could write a complicated call to virtualquery to get the protection of that address, but it's kinda slow if it's called a lot, and it's not an easy to setup function to call

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Gi@nnis
Cheater
Reputation: 1

Joined: 26 Oct 2013
Posts: 32
Location: Greece

PostPosted: Sat Aug 09, 2014 9:52 am    Post subject: Reply with quote

Dark Byte wrote:
usually check if it's NULL (0)
Code:

cmp [esi+18],0
je nopointer


but if it can be random garbage then you're out of luck. You could write a complicated call to virtualquery to get the protection of that address, but it's kinda slow if it's called a lot, and it's not an easy to setup function to call


Yeah that's what I though. I wanted someone with more experience to verify it, because testing result as not as reliable (might work now but not work later).

As far as I can test it, it works fine.

Thanks! As always, very helpful. 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 Gamehacking 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