Sign in to follow this  
Followers 0
pokemaster

Memory write to a pointer + offset

3 posts in this topic

#1 ·  Posted (edited)

Using nomadmemory and reading a pointer by

$result = _MemoryPointerRead($address, $handle, $offset)

Works fine. However, I cannot write to a pointer. I have only succeeded with writing to an address, but can't get it to work with a pointer.

_MemoryWrite($addressitpointsto,$handle, $somevalue)

Is it possible to include the offset in there somewhere? I tried after $somevalue, but it returned an error.

Edited by pokemaster

Share this post


Link to post
Share on other sites



How very interesting choice of used terms.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Maybe you could give us some parts of your code, so that we exactly know what you want, because there are no relationships between your two codeparts O.o

I think you should get the adress, the pointer points to, then sum the offset (in HEX !!) and then you have to rewrite this adress

for example

$adress1 = _MemoryRead($pointer,$process)

$adress = Hex($adress1+$offset)

_MemoryWrite($adress,.......)

That's the way I do it and it works fine

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0