return TRUE; for activation for the while;
dwHackThread starts the Dword dwHackThread : wich contains Main and a reset to code line 0 (start)... do you get it now. not much else to rely on anyways.
Hey is someone there who can explain what he mean with this part of the source? he didnt explained that but this is the onliest part which i dont understand. I know its the "function" which is called first when the dll is injected but what is it doing then?/
Just explain me what each line is doing like comments for the lines please =)
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
ITS FROM CODERNEVER!!!
his whole tut is here!
https://www.mpgh.net/forum/207-combat...arms-hack.html
CREDITS TO CN
return TRUE; for activation for the while;
dwHackThread starts the Dword dwHackThread : wich contains Main and a reset to code line 0 (start)... do you get it now. not much else to rely on anyways.
@ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist
neuest gift from Yura~Chan:
https://bakyurayuu.deviantar*****m/#/d372taw
2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
come on you know that don't want to push that ordinary button
doofbla (07-27-2010)
ok thank you so far =) ehm and this one?
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
what effects the disabling of threadlibrarycalls? (hDll)?
and
okay IF is clearbut the dwreason==DLL_PROCESS_ATTACH? what does it compare?
and from where does the dllmain(param,param,param) got these parameters?
HMODULE hDll, DWORD dwReason, LPVOID lpReserved
I'm near to press the thanks button ;-)
Last edited by doofbla; 07-27-2010 at 09:06 PM.
But i also want a answer to my question that i asked so if you aswer it i'll give u a thx but not for a needless post like you did.
heyy u have the same princip like me with the thanks guy XD sorry i dont know but why do you want to know that???
good princip xD I just want to know that cuz i'm learning c++ at the moment and i wanna code hacks for CA in the far far future^^ therefore i have to know how to inject a dll in a running process not realy HOW it works but how i can do it. And i want to understand all I'm writing =)
Now i made my own little programm wich is counting from 1,2,3,4,.... and a dll to inject which is writing I'M THE DLL after each numberjust to learn. AND IT WORKS =) HAPPY
But I'm nearly stupid like before cuz I want to know what this is doin?
DisableThreadLibraryCalls(hDll);
But now i got a new question:
Can't we simply call the HackThread function with dwHackThread()?
=)
OMG ok i forgot it in his post i can catch it up if you're satisfied then and now please dont make again a needless post just be quiet I just asked a question and i f you can't answer it be QUIET THANK YOU!!!