Results 1 to 3 of 3
  1. #1
    deve48's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0

    Writememory d3d9 hook

    Well I am new to C++ and d3d9 hook , I have started with hans211 base to make somethink more clear foır me since its well coded.

    I got the men working on my game without problem (exept the background doesnt change) .

    I wont to know how to write to memory when a cheat is activated.

    This is on globals :
    #define ADR_holder 0xC74868

    and the cheat goes active here :

    Code:
    DWORD WINAPI HACKthread( LPVOID param )
    {
        // --- hack loop
    	while (1) {
    		
    if (CH_hastings)
          
    		Sleep(50);
    
        }
    	return 0;
    }
    I have to write to address "C74868" the value 53 in 4 bytes .


    How do I do this thank you ..

  2. #2
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Use OpenProcess and WriteProcessMemory.
    Check msdn to see how to use them.

    If you're unable to figure it out with that you shouldn't be trying to code hacks and actually get a book...
    Ah we-a blaze the fyah, make it bun dem!

  3. #3
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,662
    My Mood
    Dead
    Quote Originally Posted by Hell_Demon View Post
    Use OpenProcess and WriteProcessMemory.
    Check msdn to see how to use them.

    If you're unable to figure it out with that you shouldn't be trying to code hacks and actually get a book...
    Like every other single kido leeching and trying to run while he can't even crawl.
    Love You All~

  4. The Following User Says Thank You to Melodia For This Useful Post:

    Hell_Demon (03-30-2011)