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
Jump to content
Posted 07 January 2014 - 11:12 PM
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"
Posted 08 January 2014 - 02:02 AM