title: Base address of exe?
body: <pre><code>    tibiaWindow = FindWindow( L"TibiaClient", NULL);
  
      DWORD PID;
      GetWindowThreadProcessId( tibiaWindow, &amp;PID );
  
      HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID); //Open Process for Read/Write
      short mana = 0;
      void* ptr = (void*)hProcess+0x3C2D00;
      if( !ReadProcessMemory(hProcess, ptr, &amp;mana, 2, 0) ){
          return false;
      }
      else{
          statusBar()-&gt;showMessage( QString::number(mana), 3000 );
      }
  
      return true;
  </code></pre>
  
  <p>This is supposed to read the mana from a game which is located at tibia.exe + 0x3CD2D00. But it doesn't work. Can anyone help me? How do I get the base address of that window?</p>