i use normal dllmain and it works fine for me..btw i use CreateThread..
i still have trouble with it
here' an example
i tried evrey way but not workCode: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 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)
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
or do it this way..
@BlackLiteCode: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; }
Edit: post full source or else we can't spot your mistake.
I use old base posted from last years here & inject it with my private injector, worked fine ^^
Last edited by Genkidesu; 05-06-2012 at 07:33 PM.
try thatCode: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; }
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development