Register for your free account! | Forgot your password?

Go Back   elitepvpers > Aion > Aion Main - Discussions / Questions
You last visited: Today at 01:17

  • Please register to post and access all features, it's quick, easy and FREE!

 

Help with memory reading. C++.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 75
Received Thanks: 42
Help with memory reading. C++.

Hello people, I'm kinda new to memory reading in c++. Been doing similiar stuff, and done some other stuff like packet hacks etc but anyway, to the issue.

I get weird values from AION when reading. And I'm prolly going about this totally wrong so I'll post you the code and hopefully some kind soul out there will point me in the right direction.

Code:
        int address = 0xA82424;
        int value;
        DWORD pid;
        if(!GameWindow)
        {
           cout <<"Window not found!";
        } else {

         GetWindowThreadProcessId(GameWindow,&pid);
         HANDLE phandle = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
         if(!phandle)
         
		 { cout <<"Could not get handle!"; } else {


           ReadProcessMemory(phandle,(LPVOID)address,&value,4,0);

           cout << endl << "value: " << value << endl;
		   cout << "hwnd: " << GameWindow << endl;
		   cout << "phandle: " << phandle << endl;
		   cout << "adress: " << (LPVOID)address << " - " << GameWindow+address << endl;

			int m;	
		   cin >> m;
           
           }

         }
GameWindow is the hwnd, I get it eariler in the code just so you know.

Result of THAT search is this:

value: 0
hwnd: 020D0224
phandle: 000007CC
adress: 00A82424 - 04AD92B4(this last one is just to test some).



Hate123 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
VB 08 Memory Reading
Hallo, Ich wollte in einem Spiel die HP auslesen lasse, dabei bin ich aber auf ein Problem gestoßen. Das Problem ist, das die Pointer Adresse...
2 Replies - .NET Languages
Memory reading etc.
-
11 Replies - General Coding
Memory reading help...
Hi, I need to read the amount of arrows on an archer (0-500). I have the pointer and offset, and i can get the right number in cheat engine,...
1 Replies - CO2 Main - Discussions / Questions
Help with Reading Memory
Hello, I&#39;ve been programming my own Program, but im now busy with the hardest stuff, and i&#39;m writing in VB.NET 2005 who can help me with a...
1 Replies - CO2 Main - Discussions / Questions
VB.Net Memory Reading
Basically I&#39;m doing a course in VB.Net and I&#39;m wondering if theres anyone here who can teach me or show me how to read memory values in my project....
0 Replies - .NET Languages



All times are GMT +2. The time now is 01:17.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.