joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.68k stars 381 forks source link

Add dosbox.conf option to exclude the DOSBox-X window from screen capture/recording, especially for those who don't want their DOS gaming scraped by the Windows 11 "Recall" feature #5038

Closed joncampbell123 closed 3 months ago

joncampbell123 commented 3 months ago

Is your feature request related to a problem? Please describe.

No response

What you want

Add an option for Windows 11 users to protect their DOS gaming from the "Recall" feature by marking the DOSBox window as excluded from screen capture using this API: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity

Yes, it's not enabled on PCs now but I wouldn't be surprised if Microsoft gets so excited about their new feature they roll it out to everyone later on.

Describe alternatives you've considered

No response

Additional information

No response

Have you checked that no similar feature request(s) exist?

Code of Conduct & Contributing Guidelines

joncampbell123 commented 3 months ago

If there is an API in Windows 11 to directly exclude DOSBox-X from "Recall" without disabling the ability to screen record (such as a user that wants to OBS live stream without Recall scraping it), I'd be happy to use that API to do it.

joncampbell123 commented 3 months ago

Huh... so if the existing C++ can call WinRT, I might see if DOSBox-X could feed (if directed) empty user activity events to Recall that have nothing or bogus data. If a program explicitly sends the user "activity" does that stop Recall from scraping the window on it's own? :)

https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.useractivities.useractivity.createsession?view=winrt-22621

https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-enhance

joncampbell123 commented 3 months ago

Done. Also Mac OS has a similar feature although all we can do is make the window blank, but, same idea.

In case Apple is dumb enough to think "Recall" is a really great idea worth adding to Mac OS.