That yellow border drove me mad. It’s Windows telling you which window you’re sharing. Speakeasy uses Windows Graphics Capture to share a specific application window, and on Windows 10 the border comes with it.

Can I turn it off?
On Windows 10? Nope. Microsoft gave the capture API a setting called IsBorderRequired, and on Windows 10 the answer is always yes.
On Windows 11, open Settings and search for “Screenshot borders.” That’s where you can give apps permission to turn off the border. The app still has to ask Windows to capture without it. I’d love for Windows 10 to get that option too, but the reply I found from the Windows capture team was “There is very little chance this API comes to Win10.”

Why use Windows Graphics Capture in the first place?
I had three ways to get a window onto your stream. GetWindowDC does the work in software, which makes it a poor fit for a high-quality game stream. DXGI Desktop Duplication is great for sharing a whole screen. You can even crop it down to the exact size of your game. Sounds good until you minimize the game and now everybody can see whatever was behind it. You’re still sharing that rectangle of your desktop.
Along comes Windows Graphics Capture. It’s fast, it works with the graphics hardware, and I can ask it for the actual game window. Great! Then you see the yellow border.
But wait, how do Discord and OBS get around it?
For game capture, they can load a signed DLL into the game and read the graphics directly. That also means antivirus and anti-cheat software see another program sticking code into your game. Discord has had to work with vendors to get its code recognized. All I wanted to do was share a window, and now I have to convince video game companies that I Am Good And Can Be Trusted.

And you can see why the antivirus folks care. Somebody actually used OBS software to load a malicious DLL and steal credentials. It’s a game of whack-a-mole for the people trying to stop this stuff.

https://www.hunters.security/en/blog/lummapp-infostealer-browser-extensions-credential-theft
This got especially annoying back in the CS:GO days. Trusted Mode blocked the hook OBS used for Game Capture, so people who just wanted to record a match had to choose between using that capture method and playing in Trusted Mode.

In-game overlays run into the same problem. Fred Emmott wrote about what it takes to build one that plays nicely with anti-cheat. Hope you don’t accidentally get yourself banned while trying to write the code!
https://fredemmott.com/blog/2022/05/31/in-game-overlays.html
Did Discord try Windows Graphics Capture too?
Yep. Discord tried it, Windows 10 users got the yellow border, and Discord rolled the change back. If you saw it on your Discord stream for a bit and then it disappeared, that’s why.

https://www.reddit.com/r/discordapp/comments/y7khul/yellow_border_appears_on_window_when_streaming/
So that’s why the border stays on Windows 10. Microsoft added it for security, and one way around it involves doing the very thing anti-cheat software is looking for. I’d still love a checkbox.
Super cool, thanks Microsoft!