Search
 
SCRIPT & CODE EXAMPLE
 

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
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: ue4 ftext c++ 
Cpp :: uri online judge 3145 solution in c++ 
Cpp :: controlling in windows 
Cpp :: g++ -wall option meaning 
Cpp :: logisch und 
Cpp :: nth permutation c++ stl 
Cpp :: gmod hitman job code 
Cpp :: how to sort a 2d array in c++ 
Cpp :: gl draw line rectangle 
Cpp :: how to set a string equal to another string cpp 
Cpp :: change int to string cpp 
Cpp :: cpp code for euclids GCD 
Cpp :: c++ default array value not null 
Cpp :: extern __shared__ memory 
Cpp :: write variable to file cpp 
Cpp :: c++ Modulo 10^9+7 (1000000007) 
Cpp :: number to binary string c++ 
Cpp :: cout.flush() in c++ 
Cpp :: Modulo Exponentiaon,Iteratve Modulo Exponentiation 
Cpp :: hello world C++, C plus plus hello world 
Cpp :: swap values in array c++ 
Cpp :: loop through char in string c++ 
Cpp :: c++ string remove last character 
Cpp :: how to add numbers in c++ 
Cpp :: return by reference in cpp 
Cpp :: character array to string c++ stl 
Cpp :: how to make a random number in c++ 
Cpp :: string to vector char c++ 
Cpp :: number of words in c++ files 
Cpp :: string to long integer c++ 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =