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.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,443 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,383 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 16,836 Reputation points

    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.

    0 comments No comments