Thanks for your replay.
Lets say I have hookt in DIP. I restored the old bytes and I make a jump back. Can I just do that command in the middel of those?
Becouse I think there is more.
So like:
Code:
//restoren in asm
//Make the device
device->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE );
device->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);
//jump back in asm
Becouse I only made a hook, nothing more. I did\'t call DIP or somting else.
Edit:
I see other ppl do:
Code:
MOV ECX, DWORD PTR DS:[EAX]
MOV pDevice, EAX;
MOV EDX, DWORD PTR DS:[ECX+0x148]
PUSHAD
MOV ECX, [EBP + 0x18]
MOV BaseVertexIndex, ECX
MOV ECX, [EBP + 0x8]
MOV MinIndex, ECX
MOV ECX, [EBP + 0x10]
MOV nNumVertices, ECX
MOV ECX, [EBP + 0xC]
MOV StartIndex, ECX
MOV ECX, [EBP + 0x14]
MOV nPrimitiveCount, ECX
THen they call DIP:
Code:
pDevice->DrawIndexedPrimitive(PrimType, BaseVertexIndex, MinIndex, nNumVertices, StartIndex, nPrimitiveCount);
But I don\'t hook in the_main.exe. So I can\'t do this with the Pdev.
Or do they use this to create DIP in the dll and then hook in DIP to use this?
If that is a yes, then I need to make a hook in the main exe.