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
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( newchar[sizeof( int )] );
/* Allocate an integer and place it within Area. */
int *Data( new( Area ) int( 0 ) );