How to determine if a program uses DirectX, and if so, what is the size of the DirectX surface?

I use Spazzarama's Direct3DHook to capture screenshots from the application (with the goal of streaming them over the Internet). Although this works well when an application uses DirectX, it fails if the application does not use DirectX (for example, Notepad).

  • How to determine if a running application (process) uses DirectX? The reason is that in this case I will need to use a different screen capture method, for example. using GDI +.
  • When this DirectX application does not work in full screen mode, how do I get the DirectX surface size? For instance. when I capture the screen of a game running in windowed mode, the size of the application also includes the size of the window, etc., and my captured screen is usually too large.
+4
source share

All Articles