title: Anti capture screen in C#
body: <p>I want to write a program to stop the recording the screen, and I used the following code to do that.</p>
  
  <pre><code> const uint WDA_NONE = 0;
      const uint WDA_MONITOR = 1;
  
      [DllImport("user32.dll")]
      public static extern uint SetWindowDisplayAffinity(IntPtr hWnd, uint dwAffinity);
      private void Form4_Load(object sender, EventArgs e)
      {
          SetWindowDisplayAffinity(this.Handle, WDA_MONITOR);
      }
  </code></pre>
  
  <p>However, this code does not work for Merlis Action software.</p>