Go to HarithBase.cpp And Deleat This Code
Code:
int __stdcall D3D(void)
{
HINSTANCE hD3D;
DWORD vTable[105];
hD3D=0;
do {
hD3D = GetModuleHandle("gta_sa.exe");
if (!hD3D) Sleep(100);
} while(!hD3D);
if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
{
while(1)
{
if(memcmp((void*)vTable[82],(void*)(PBYTE)"\x8B\xFF",2)== 0)
{
pDrawIndexedPrimitive = (oDrawIndexedPrimitive) DetourCreate((PBYTE)vTable[82], (PBYTE)myDrawIndexedPrimitive, 5);
pEndScene = (oEndScene) DetourCreate((PBYTE) vTable[42], (PBYTE)myEndScene,5);
}
Sleep(50);
}
return 0;
}
}
After That Replace With my Code
Code:
int __stdcall Harith101(void)
{
DWORD dwD3D9 = 0;
while(!dwD3D9) {
Sleep(100);
dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
}
DWORD vTable[105];
if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
{
pDrawIndexedPrimitive = (oDrawIndexedPrimitive) DetourCreate((PBYTE)vTable[82], (PBYTE)myDrawIndexedPrimitive, 5);
pEndScene = (oEndScene) DetourCreate((PBYTE) vTable[42], (PBYTE)myEndScene,5);
}
return FALSE;
}
After that Replace This Code At MainDLL
original Code :
Code:
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
MessageBox (0,"Made By ...:: Harith101 ::...","Black Roses", MB_OK);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
//CreateThread(0, 0, (LPTHREAD_START_ROUTINE)DevilHack,0, 0, 0);
}
return TRUE;
}
New Code :
Code:
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
MessageBox (0,"Made By ...:: Harith101 ::...","Black Roses", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Harith101,0, 0, 0);
}
return TRUE;
}
Scan1
Scan2
I Also give Microsoft DirectX 9.0 SDK (Summer 2004)
Creadits : @Me(Harith101) & @Qmo(Source Code)