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 


Hmm will this work?

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

Joined: 06 Jan 2008
Posts: 63

PostPosted: Thu Jan 17, 2008 12:25 pm    Post subject: Hmm will this work? Reply with quote

Code:

#include <windows.h>
#include "stdafx.h"

char * walkspeedaddr = "0x00000000"; // Float
char * pixelgmodeaddr = "0x00000000"; // Offset: 0x384;  4 BYTES
char * mphackaddr = "0x00000000"; // Memory

DWORD ReadKey( LPCTSTR szSection, LPCSTR szKey, LPTSTR szReturnString ){

   LPCTSTR APPNAME = "\resources.ini";
   GetPrivateProfileString(szSection,szKey,0,szReturnString,255, APPNAME);
   return true;

}

void ReadValues(){
   ReadKey("Addresses","WalkSpeedAddr",walkspeedaddr);
   ReadKey("Addresses","PixelGmodeAddr",pixelgmodeaddr);
   ReadKey("Addresses","MPHackAddr",mphackaddr);
}
void Main(){
   /* Filler */
}

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                )
{
   if(ul_reason_for_call){
      DisableThreadLibraryCalls(hModule);
      CreateThread(NULL, 0, (unsigned long(__stdcall*)(void*))Main, NULL, 0, NULL);
      ReadValues();
   }
    return TRUE;
}





I am just seeing if the values will return correctly... Will it?
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 17, 2008 1:46 pm    Post subject: Re: Hmm will this work? Reply with quote

mer0x wrote:
Code:

#include <windows.h>
#include "stdafx.h"

char * walkspeedaddr = "0x00000000"; // Float
char * pixelgmodeaddr = "0x00000000"; // Offset: 0x384;  4 BYTES
char * mphackaddr = "0x00000000"; // Memory

DWORD ReadKey( LPCTSTR szSection, LPCSTR szKey, LPTSTR szReturnString ){

   LPCTSTR APPNAME = "\resources.ini";
   GetPrivateProfileString(szSection,szKey,0,szReturnString,255, APPNAME);
   return true;

}

void ReadValues(){
   ReadKey("Addresses","WalkSpeedAddr",walkspeedaddr);
   ReadKey("Addresses","PixelGmodeAddr",pixelgmodeaddr);
   ReadKey("Addresses","MPHackAddr",mphackaddr);
}
void Main(){
   /* Filler */
}

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                )
{
   if(ul_reason_for_call){
      DisableThreadLibraryCalls(hModule);
      CreateThread(NULL, 0, (unsigned long(__stdcall*)(void*))Main, NULL, 0, NULL);
      ReadValues();
   }
    return TRUE;
}





I am just seeing if the values will return correctly... Will it?

and ofc you couldn't try it yourself before posting?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
stealthy17
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 144
Location: The Netherlands

PostPosted: Thu Jan 17, 2008 1:48 pm    Post subject: Reply with quote

Was going to ask the same but then the webserver started messing up telling me i was banned etc.

lol
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 17, 2008 1:51 pm    Post subject: Reply with quote

stealthy17 wrote:
Was going to ask the same but then the webserver started messing up telling me i was banned etc.

lol

I mean.. when you got the code?!
is it that hard to compile it? If you can't compile it then for sure there are a error in the code. ^^

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
stealthy17
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 144
Location: The Netherlands

PostPosted: Thu Jan 17, 2008 1:55 pm    Post subject: Reply with quote

Exactly...
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