write a value into memory by dll?

i have an app that im launching, that app is using my dll, how do i write a specific value to a specific place in the apps memory?

for example, i'm looking to change an asm jmp location to another place in memory or looking to change a asm instruction to something different, how can either of these be done? is there any functions i could use or any methods? currently using detours for my dll
Last edited on
closed account (zb0S216C)
By using just C++, placement new maybe what you're looking for. Palcement new will allocate a block of memory. When you allocate something, you can choose the block you just allocated to store the new object. For example:

1
2
3
4
5
/* Create a buffer */
char *Area( new char[sizeof( int )] );

/* Allocate an integer and place it within Area. */
int *Data( new( Area ) int( 0 ) );


Wazzak
Topic archived. No new replies allowed.