title: Is there a programmatic way to see what graphics API a game is using?
body: <p>For games like DOTA 2 which can be run with different graphics API's such as DX9, DX11, Vulkan, I have not been able to come up with a viable solution to checking which of the API's its currently using. I want to do this to correctly inject a dll in order to display images over the game.</p>
  
  <p>I have looked into manually checking what dll's the games have loaded, </p>
  
  <p>this tool for example: <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls</a></p>
  
  <p>however, in the case of DOTA, it loads in both d3d9.dll and d3d11.dll libraries if none is specified in launch options on steam. Anyone have any other ideas as to how to determine the correct graphics API used?</p>