Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. int getMemoryValue(int memory){
  2. DWORD PID;
  3. memory = 0xAH9AE004;
  4.  
  5. int value;
  6. clientTibia = L"Tibia";
  7. hwnd_windowTibia = FindWindow(NULL, clientTibia);
  8. DWORD THid = GetWindowThreadProcessId(hwnd_windowTibia, LPDWORD(PID));
  9. HANDLE process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, THid);
  10. //ReadProcessMemory(PH, Ptr(Address), @Value, 4, Ler);
  11. BOOL readyProcessMe = ReadProcessMemory(process, (LPCVOID)memory, &value, 4, 0);
  12.  
  13. return value;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement