Solved help retrieving base address of game

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

silentm

Newbie
Dec 17, 2012
4
172
Visit site
0
I've been googling and trying code for the last 4 hours and I'm getting no where. None of the provided "solutions" on any site will compile. Latest method I've tried is GetModuleBaseExtern();

C++:
DWORD GetModuleBaseExtern(const DWORD dwProcessId, const char *szModuleName)
{
if ((!dwProcessId) || (!szModuleName)) return 0;

HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
if (!hSnap) return 0;

MODULEENTRY32 me;
me.dwSize = sizeof(MODULEENTRY32);

DWORD dwReturn = 0;

if (Module32First(hSnap, &me)) {
while (Module32Next(hSnap, &me)) {
if (lstrcmpi(me.szModule, szModuleName) == 0) {
dwReturn = (DWORD)me.modBaseAddr;
break;
}
}
}

CloseHandle(hSnap);

return dwReturn;
}
I get about 14 different errors in compilation like:
syntax error : missing ')' before 'const'
'GetModuleBaseExtern' : function does not take 0 arguments (even though I'm calling it with GetModuleBaseExtern( dwProcId, "iw3mp.exe")
'lstrcmpiA' : cannot convert parameter 2 from 'const char' to 'LPCSTR'


So is there any other methods of getting the base address of the game when it's dynamic?
 

silentm

Newbie
Dec 17, 2012
4
172
Visit site
0
after another 4 hours of trial and error I got it to compile and it seems to work... ugh. I guess I now need to figure out how to find an offset for something simple like local player name and try to apply it and get it to output to console, :|
 
Status
Not open for further replies.
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods League of Legends Accounts