 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
mer0x Advanced Cheater
Reputation: 0
Joined: 06 Jan 2008 Posts: 63
|
Posted: Thu Jan 17, 2008 12:25 pm Post subject: Hmm will this work? |
|
|
| 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 |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Jan 17, 2008 1:46 pm Post subject: Re: Hmm will this work? |
|
|
| 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 |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Thu Jan 17, 2008 1:48 pm Post subject: |
|
|
Was going to ask the same but then the webserver started messing up telling me i was banned etc.
lol
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Jan 17, 2008 1:51 pm Post subject: |
|
|
| 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 |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Thu Jan 17, 2008 1:55 pm Post subject: |
|
|
| Exactly...
|
|
| Back to top |
|
 |
|
|
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
|
|