SetWindowDisplayAffinity not working in chrome web browser on Windows 11.

광땡 1 Reputation point
2022-03-03T12:47:26.983+00:00

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,523 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,992 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 16,866 Reputation points
    2022-03-05T16:15:24.44+00:00

    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