So I was wondering if there is a way to prevent a program from taking screenshots or allowing a program to take screenshots but blackened to image.
Program that takes screen shot is as follows:
using System.Drawing.Imaging;
namespace ScreenCapture
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {}
        private void PrintScreen()
        {
            Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
            Graphics graphics = Graphics.FromImage(printscreen as Image);
            graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size);
            printscreen.Save(@"C:\Temp\printscreen.jpg", ImageFormat.Jpeg);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            PrintScreen();
        }
    }
}
If I handle PrintScr returning null would it work?
P.S. : Its not like I want to prevent a program from having its screenshot taken, I want to prevent program from taking screen shots of the complete desktop screen
Basically, I have a program that is taking screenshots every min,i.e., monitor the user's activity. I want a create a program to nullify it. NOT STOP THE PROGRAM