how to make transparent black square in SetWindowDisplayAffinity? put a picture or transparent background instead of a black square
I need the window not to be visible at all in the video capture
how to make transparent black square in SetWindowDisplayAffinity? put a picture or transparent background instead of a black square
I need the window not to be visible at all in the video capture
I found a solution.
const uint WDA_EXCLUDEFROMCAPTURE = 0x00000011;
SetWindowDisplayAffinity (this.Handle, WDA_EXCLUDEFROMCAPTURE);
I also used it. But it works in Windows 10 version 2004 and above. I tried on new versions of Windows and everything worked out, the window was completely invisible in the screen capture.