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 


[C++] Help.
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Mon Dec 28, 2009 5:55 pm    Post subject: Reply with quote

@slovach

Each snippet of code dealing with VirtualQuery is edited after more research.
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Dec 28, 2009 5:57 pm    Post subject: Reply with quote

i don't think you get it.

whatev.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Mon Dec 28, 2009 6:03 pm    Post subject: Reply with quote

GUYS!

I found a fucking fast method, i'm finally finished!

Code:

if (!strcmp(GetType, "Byte"))
               {
                  cout << GetValue << endl;
                  cout << GetType << endl;

                  bool Read;                  
                  int Value = atoi(GetValue);
                  MEMORY_BASIC_INFORMATION pInfo = {0};
                  SYSTEM_INFO sInfo;
                  GetSystemInfo(&sInfo);                  
                  SIZE_T s;
                  
                  int min = (int) sInfo.lpMinimumApplicationAddress;
                  int max = (int) 0x00FFFFFF;

                  MessageBoxA(0, ConvertAddress((LPVOID) (DWORD) min).c_str(), 0, MB_OK);

                  for (int i = min; i < max; i++)
                  {
                     s = VirtualQuery((LPCVOID) i, &pInfo, sizeof(pInfo));
                     
                     if ((s == sizeof(MEMORY_BASIC_INFORMATION)) && (pInfo.Type = MEM_PRIVATE) && (pInfo.State == MEM_COMMIT) && (pInfo.RegionSize > 0))
                     {                     
                        Read = ReadByte((DWORD) i, Value);
                           
                        if (Read == true)
                        {
                           cout << (LPVOID) i << endl;

                           SendMessageX(ListBox1, LB_ADDSTRING, 0, (LPARAM) ConvertAddress((LPVOID) i).c_str());
                        }                        
                     }   
                     else
                     {
                        i = i + pInfo.RegionSize;
                     }
                  }               

                  GetResults();
               }
            }
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Dec 29, 2009 6:37 am    Post subject: Reply with quote

iPromise wrote:
GUYS!

I found a fucking fast method, i'm finally finished!

Code:

if (!strcmp(GetType, "Byte"))
               {
                  cout << GetValue << endl;
                  cout << GetType << endl;

                  bool Read;                  
                  int Value = atoi(GetValue);
                  MEMORY_BASIC_INFORMATION pInfo = {0};
                  SYSTEM_INFO sInfo;
                  GetSystemInfo(&sInfo);                  
                  SIZE_T s;
                  
                  int min = (int) sInfo.lpMinimumApplicationAddress;
                  int max = (int) 0x00FFFFFF;

                  MessageBoxA(0, ConvertAddress((LPVOID) (DWORD) min).c_str(), 0, MB_OK);

                  for (int i = min; i < max; i++)
                  {
                     s = VirtualQuery((LPCVOID) i, &pInfo, sizeof(pInfo));
                     
                     if ((s == sizeof(MEMORY_BASIC_INFORMATION)) && (pInfo.Type = MEM_PRIVATE) && (pInfo.State == MEM_COMMIT) && (pInfo.RegionSize > 0))
                     {                     
                        Read = ReadByte((DWORD) i, Value);
                           
                        if (Read == true)
                        {
                           cout << (LPVOID) i << endl;

                           SendMessageX(ListBox1, LB_ADDSTRING, 0, (LPARAM) ConvertAddress((LPVOID) i).c_str());
                        }                        
                     }   
                     else
                     {
                        i = i + pInfo.RegionSize;
                     }
                  }               

                  GetResults();
               }
            }

Wow that code is beautiful
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Tue Dec 29, 2009 1:09 pm    Post subject: Reply with quote

@Slugsnack Wink Scanned from 00400000 to 7FFFFFFF in like 2 secs Wink
Back to top
View user's profile Send private message MSN Messenger
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Tue Dec 29, 2009 1:21 pm    Post subject: Reply with quote

iPromise wrote:
@Slugsnack Wink Scanned from 00400000 to 7FFFFFFF in like 2 secs Wink



... lol

and you're the guy who wanted to sell a memory editor? Arrow Idea
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Dec 29, 2009 2:30 pm    Post subject: Reply with quote

Also you might find these articles interesting :
http://www.codeguru.com/forum/showthread.php?t=332831
http://blogs.msdn.com/oldnewthing/archive/2004/12/22/329884.aspx

smartz993 : this guy has mastered C++, or so he claims Rolling Eyes
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Tue Dec 29, 2009 5:47 pm    Post subject: Reply with quote

@Slugsnack I never claimed to master C++, it takes like 20 years just to master C++.

@smartz993 I revised, i'm not planning to sell this.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Dec 29, 2009 6:09 pm    Post subject: Reply with quote

iPromise wrote:
@Slugsnack I never claimed to master C++, it takes like 20 years just to master C++.

@smartz993 I revised, i'm not planning to sell this.

I SMELL BULLSHIT I CALL BULLSHIT. Don't make me get our MSN conversation logs too Neutral

http://img136.imageshack.us/img136/4207/39525791.png
http://img689.imageshack.us/img689/9083/25398345.png

MaybeeBuy is yet another alias for the above charlatan, 20 years sure goes past real quick for a 13 year old.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Tue Dec 29, 2009 6:30 pm    Post subject: Reply with quote

@Slugsnack I was too stupid back then, I was full of myself, well now I learned Smile

Lets not get off topic Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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