/sigh Dllmain

Posts 1–5 of 5 · Page 1 of 1
/sigh Dllmain
i still have trouble with it

here' an example

Code:
int blah bla blah (void)
{
if no reload{
float bla bla bla
}
return 1;
}

bool dllmain ( hmoudle hdll blah blah blah )
{
if (dwreason = DLL_PROCESS_ATTACH){
disablethreadlibrary(hdll)
blah bla blah ();
}
}
i tried evrey way but not work
i use normal dllmain and it works fine for me..btw i use CreateThread..
dont put in the bla bla bla, and maybe people can help but from what i see, u dont have a loop so u cant be changing the code, also u didnt create a thread, so ur pausing the thread that called LoadLibrary(), which could stop the pause the process into total (if u had a loop in it)
or do it this way..

Code:
int blah(void)
{
int noreload = 1;
for(;;Sleep10)
{
if(GetModuleHandle("CShell.dll") != NULL){ break; }
if (noreload)
{
//hack here
}
}
return 0;
}

bool dllmain ( hmoudle hdll blah blah blah )
{
if (dwreason = DLL_PROCESS_ATTACH)
{
disablethreadlibrary(hdll)
blah();
}
return 1;
}
@BlackLite
Edit: post full source or else we can't spot your mistake.

Quote Originally Posted by DaRk View Post
i use normal dllmain and it works fine for me..btw i use CreateThread..
I use old base posted from last years here & inject it with my private injector, worked fine ^^
Code:
int blah(void)
{
int noreload = 1;
for(;;Sleep(10))
{
if(GetModuleHandle("CShell.dll") != NULL)
{ 
 if (noreload)
 {
 //hack here
 }
}
}
return 0;
}

bool dllmain ( hmoudle hdll blah blah blah )
{
if (dwreason = DLL_PROCESS_ATTACH)
{
disablethreadlibrary(hdll)
CreateThread(0,0,(LPTHREAD_START_ROUTINE)blah,0,0,0);
}
return 1;
}
try that
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us