Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ edit another processes memory address

#include <windows.h>

int main()
{
    const DWORD Address = 0xB793E0;  //Use your own address
    int SetValue = 100;              //This will be the new value for the address

    HWND handle = FindWindow(NULL, L"WINDOW_NAME");    //Window name example: "Audacity"
    DWORD pid;                                         //Store process ID
    GetWindowThreadProcessId(handle, &pid);            //Get process ID
    HANDLE phandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);   //Get process handle

    WriteProcessMemory(phandle, (LPVOID)(Address), &SetValue, sizeof(SetValue), 0);    //Write to the memory address
}
 
PREVIOUS NEXT
Tagged: #edit #processes #memory #address
ADD COMMENT
Topic
Name
2+8 =