Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Trying to ReadProcessMemmory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kennny2004
Advanced Cheater
Reputation: 0

Joined: 22 Jan 2006
Posts: 59
Location: Canada

PostPosted: Tue May 15, 2007 4:27 pm    Post subject: Trying to ReadProcessMemmory Reply with quote

Code:
#include <iostream>
#include <windows.h>
#include <tlhelp32.h>
#include <conio.h>

using namespace std;

int main()
{
    HWND hwnd = NULL;
    while(!hwnd)
    {
        hwnd = FindWindow(0, "MapleStory");
        Sleep(10);
    }
   
    DWORD dwPID;
   
    GetWindowThreadProcessId(hwnd,&dwPID);
    cout << "> MapleStory - Process ID: " << dwPID << endl;
   
    HANDLE hProcess;
   
    hProcess = OpenProcess(PROCESS_ALL_ACCESS,TRUE,dwPID);
   

    int x=ReadProcessMemory(hProcess,(void*)0x35A46FB8,0,4,0);
   
    cout<<"The value of the address 35A46FB8 is: "<<x<<endl;
   
    getch();
}


Beside ReadProcessMemory which is a boolean i belive. so i know for x it be 0 or 1....

So how would i get this a value but before that i get
"MapleStory - Process ID: 0"
is that correct should it be something else?
Thanks

_________________
Hey was up! lol, simple heh
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 15, 2007 7:00 pm    Post subject: Reply with quote

that's gameguard for you
Back to top
View user's profile Send private message
kennny2004
Advanced Cheater
Reputation: 0

Joined: 22 Jan 2006
Posts: 59
Location: Canada

PostPosted: Tue May 15, 2007 8:28 pm    Post subject: Reply with quote

lol well anyway around it? or anything i can do lol
_________________
Hey was up! lol, simple heh
Back to top
View user's profile Send private message
linden
Master Cheater
Reputation: 0

Joined: 10 Mar 2006
Posts: 319

PostPosted: Wed May 16, 2007 2:05 am    Post subject: Reply with quote

kennny2004 wrote:
lol well anyway around it? or anything i can do lol


Almost no way around it if you stick to usermode. (Never tried this, but maybe you can inject a dll into the game upon start, before the game loads gameguard, and work in game's process context, then you can read its memory contents and pass it to your app. BTW, if I were to try this, I'd avoid using LoadLibrary when injecting, and parse the PE file myself. Also, avoid any hooking activities.)

Best solution for bypassing gameguard protection, is to go into the kernel. (Wirte a kernel driver like CE)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites