Capturing a specific windows on Windows10 with d3d11screencapture

Hello,
I am trying to understand how I can capture a specific window with d3d11screencapture with just specifying the name of the window. A bit like OBS or Discord can achieve with specific window capture.
best,
Rz

I used the following command line on powershell windows : gst-launch-1.0.exe d3d11screencapturesrc capture-api=1 window-capture-mode=1 window-handle=263792 ! videoconvert ! autovideosink

Managed to make it work the only hard part is the HWND id which is complicated to get…

Yes, finding a HWND is a little complicated, and GStreamer does not support enumerating active HWNDs. An idea I had is providing the functionality via GstDeviceMonitor but decided not to do that at the time.