'Is there a way to get the adaptor index currently using by IDirect3DDevice9?

I implement a function that need to know which adaptor using by IDirect3DDevice9. I knew D3D11 can get adaptor index by IDXGIxxx interface, but D3D9 seems can not get it from QueryInterface. So is there any way other than passing adaptor index as a parameter?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source