Skip to content

PyCSharp/Anti-Screen-Capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Anti Screen Capture

What is it?

Anti Screen Capture is a utility that prevents most software based screen capture methods from recording your display.

I originally created it to test and bypass classroom surveillance software used in schools, but it can also be used to protect sensitive information from common recording applications.

How does it work?

The program creates a transparent, click through, always on top window using the Win32 API.

It automatically covers the entire virtual desktop by using GetSystemMetrics(SM_CXVIRTUALSCREEN) and related metrics, allowing it to work with multi monitor setups.

Additionally, the window is hidden from most software based capture methods by using SetWindowDisplayAffinity(). This instructs Windows to exclude the window from supported screen capture APIs, which helps prevent applications such as OBS Studio, Discord screen sharing, and many screenshot tools from capturing the protected content.

The same mechanism can also be applied to external windows by using a DLL based approach that targets a process via its PID. This extends capture protection beyond the local window and allows control over other applications.

How to use

Build it yourself

  1. Open the .slnx solution in Visual Studio.
  2. Press Ctrl + B to build the project.
  3. Run the generated executable.

DLL usage (optional)

  • The first parameter must be the target PID (Process ID)
  • The DLL must be built before use (Debug/Release depending on setup)

Architecture requirements

  • For 32-bit (x86) target processes, you must use the x86 injector
  • For 64-bit (x64) target processes, you must use the x64 injector

Download a prebuilt release

Download the latest release and run it:

Release

Limitations

This tool only protects against most software based screen capture methods, including:

  • OBS Studio
  • Discord screen sharing
  • Screenshot tools
  • Many remote monitoring applications

It does not protect against:

  • Low-level kernel drivers
  • Hardware capture devices
  • External HDMI capture cards
  • Any device that directly records the video signal

Because of these limitations, complete protection against all capture methods is impossible.

About

just a simple tool to prevent screen captures

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors