I believe this is a bug, in this case open start and search for feedback and open the Feedback Hub app and report this issue.
SetWindowDisplayAffinity not working in chrome web browser on Windows 11.
광땡
1
Reputation point
I use SetWindowDisplayAffinity with dll injection.
Only Windows 11 returns an error.
GetLastError: 0x8
I want to protect the browser screen.