Hi guys,
If all I have is a window handle, is there any way that I can determine what the Direct3DDevice is that is rendering on it?
Thanks in advance :)
Hi guys,
If all I have is a window handle, is there any way that I can determine what the Direct3DDevice is that is rendering on it?
Thanks in advance :)
Sure it can be done. I assume you don't have control of the process that owns that handle, so what you'll be needing is 1) a strategy to get your own code running inside that process and 2) a strategy to find the device pointer once you're inside.
The simplest solution is a proxy DLL, which would cover both cases nicely. Some helpful articles could be found by googling "DirectX hook proxy dll"