| View previous topic :: View next topic |
| Author |
Message |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Thu May 15, 2008 11:36 pm Post subject: getting mod base address |
|
|
what's the other way to get the module BaseAddress or the allocation base without using CreateToolhelp32Snapshot ?? _________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Thu May 15, 2008 11:58 pm Post subject: |
|
|
GetModuleInformation() inside of PSAPI.
Example:
| Code: | #include <windows.h>
#include <iostream>
#include <psapi.h>
#pragma comment( lib, "psapi" )
int main( int argc, char* argcv[] )
{
MODULEINFO mi = {0};
GetModuleInformation( GetCurrentProcess(), GetModuleHandle( "psapi.dll" ), &mi, sizeof(mi) );
return 0;
} |
_________________
- Retired. |
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Fri May 16, 2008 12:13 am Post subject: |
|
|
cool!
tnx master!! _________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Fri May 16, 2008 2:32 am Post subject: |
|
|
Care to explain how thats wrong? _________________
- Retired. |
|
| Back to top |
|
 |
DoomsDay Grandmaster Cheater
Reputation: 0
Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
|
Posted: Fri May 16, 2008 5:20 am Post subject: |
|
|
If you know the module's name, GetModuleHandle() is more than enough.
Last edited by DoomsDay on Sat May 17, 2008 4:59 am; edited 1 time in total |
|
| Back to top |
|
 |
thenicelordj Cheater
Reputation: 0
Joined: 24 Mar 2007 Posts: 48 Location: I'm in your VCR
|
Posted: Fri May 16, 2008 5:34 am Post subject: |
|
|
| x0r wrote: | | Wiccaan wrote: | GetModuleInformation() inside of PSAPI.
Example:
| Code: | #include <windows.h>
#include <iostream>
#include <psapi.h>
#pragma comment( lib, "psapi" )
int main( int argc, char* argcv[] )
{
MODULEINFO mi = {0};
GetModuleInformation( GetCurrentProcess(), GetModuleHandle( "psapi.dll" ), &mi, sizeof(mi) );
return 0;
} |
|
Wrong. |
Does it really help if you just say he's wrong? Maybe you could have written a correction too. _________________
I'm like a rubix cube, the more you play with me the harder I get. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
|
| Back to top |
|
 |
|