c++ - Writing to a address value from a variable? -


im trying write address in own process, im not trying write other process :p have variable:

unsigned int address = 0xdfcdd8; //just example, nothing more. 

how go writing address contained inside variable, since address not going static :/ know writeprocessmemory able this, feel kind of overkill used writing remote processes :s

so in "pseudocode" kind of this:

int newval = 10; 0xdfcdd8 = newval; 

just address contained inside variable :)

any appreciated :d

i can't imagine why need it, there's how it:

uintptr_t address = 0xdfcdd8; int newvalue = 10; *(reinterpret_cast<int*>(address)) = newvalue; 

don't that, please!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -