Hello!
I want know why my program don't get right values.
Here is my code:
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
HWND hWnd;
DWORD processId;
HANDLE hProcess;
hWnd = FindWindow(0, "World of Warcraft");
if (hWnd)
{
GetWindowThreadProcessId(hWnd, &processId);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, 0x680);
char name[30];
ReadProcessMemory(hProcess, (LPVOID)(0x763BB8), &name, 30, 0);
Form1->ECharName->Text=name;
}
else
{
Form1->ECharName->Text="WoW not runned";
}
}
I see right value in Cheat Engine, but when i try get it in my program I get something like that "Dß_", I also tried use many processId whitch i found in Cheat engine process and window list but it doesnt work,
Could someone help me in this small problem ?