title: C++: How to find out used GPU of a process?
body: <p>I want to find out which GPU is used by a process.<br>
  Since the Fall Creators Update the windows Task-Manager shows the used GPU per process: </p>
  
  <p><a href="https://i.stack.imgur.com/Gowvu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gowvu.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to get this information in C++? </p>
  
  <p>I tried to search already existing solutions but did not find one. I am aware, that you can get the current adapter using <a href="https://docs.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgidevice-getadapter" rel="nofollow noreferrer">IDXGIDevice::GetAdapter</a> but I want to get the adapter which is used by another process. </p>