Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I leveraged the hook code from here
Hooking a DirectX/COM Interface[^]

It has been great, but I have a question.

Am I required to hook "all" the functions to make it actually fully work?

I merely took it as-is and hooked it into a good that I play to see if it was using GetDeviceState, which it is.

However the game crashes and or hangs if I use the hook (it does load I etc but fails shortly after).

I don't know if it's merely releasing and re-acquiring and the code doesn't handle that well, OR if it's a problem that I haven't implemented all the functions on the device interface.

Am I required to actually implement them all? (even if all it is is a call to the original function through the original device pointer?)

Thanks
Posted
Updated 21-Jan-15 14:53pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900