hallo ich komm einfach nicht weiter den eig. müsste der Code doch so richtig sein aber beim Debugen bekomme ich immer ein Fehler ich hoffe es kann jemand helfen
LG
CODE:
LG
CODE:
Code:
#include <iostream>
#include <Windows.h>
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
char title[256];
HWND hwndProcess;
DWORD processId;
HANDLE hProcess;
unsigned int address = 0;
int Value = 0;
std::cout << "Memory Hack\n\n"
<< "Fenstertitel:\n";
std::cin.getline(title,256);
hwndProcess = FindWindowA(0, title);
if (!hwndProcess)
{
std::cout << "\n\nFehler\n\n";
}
else
{
GetWindowThreadProcessId(hwndProcess,&processId);
hProcess = OpenProcess(PROCESS_ALL_ACCESS,false,processId);
std::cout << "\n\nAddresse: ";
std::cin >> std::hex >> address >> std::dec;
std::cout << std::endl << "Wert: ";
std::cin >> Value;
WriteProcessMemory(hProcess,(LPVOID)address,&Value,sizeof(int),0);
CloseHandle(hProcess);
}
std::cin.get();
return 0;
}