Skip to content

Is there any way to disable Screen Capture/Screen Recording #351

Answered by timsneath
Nishank00 asked this question in Q&A
Discussion options

You must be logged in to vote

Yup -- the API in the accompanying article should work here:
https://yeasir007.blogspot.com/2019/10/how-to-prevent-disable-protect-screen-capture-of-windows-application.html

You should be able to do something like:

final hwnd = GetForegroundWindow();
final result = SetWindowDisplayAffinity(hwnd, WDA_MONITOR);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nishank00
Comment options

Answer selected by Nishank00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #347 on January 21, 2022 20:02.