Jump to content

Help Can I bypass a process using setWindowDisplayAffinity to hide from capture?


Recommended Posts

There's a certain process that's using setWindowDisplayAffinity to hide the whole screen from getting captured. I'm guessing it has a window that takes up the whole screen and is set to ignore clicks and is transparent so users can, but with setWindowDisplayAffinity set to WDA_MONITOR, any other processes attempting to capture the screen sees nothing but blackness.

Is there a way to bypass that?
One solution I could think of was either injecting a dll into that process and calling setWindowDisplayAffinity with WDA_NONE, and Idk if this is possible, but another way I thought of was hooking that setWindowDisplayAffinity and then doing nothing and returning successful result to caller.

I could test those and see for myself, but I wanted to know if there are other methods since I'm not sure if the process I'm targeting checks whether it's been tampered with or not.

Thanks 

Edited by Jos
removed black background. Please paste without formatting
Link to comment
Share on other sites

Try turning off (End Process) dwm.exe in task manager and see if that helps, SetWindowsDisplayAffinity only works if the desktop is composed with dwm..

Some guy's script + some other guy's script = my script!

Link to comment
Share on other sites

6 hours ago, Werty said:

Try turning off (End Process) dwm.exe in task manager and see if that helps, SetWindowsDisplayAffinity only works if the desktop is composed with dwm..

That doesn't work, it closes and opens

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...