Please Help me with this..
pDevice->DrawIndexedPrimitive(
?
But I don't know directx.
Maybe because you didn't actually typedef the hook?
You're missing the typedef to the original function.
Neither of the above, you have cancer.
Try indenting your C&P'd code, dipshit.