title: Check current display resolution using .NET core Console Application C#
body: <p>I am using .NET Core 3.1 Console Application C#</p>
  <p>How do i check current DISPLAY resolution of windows? (Not a monitor maximum resolution).</p>
  <p>I want to make my app with full screen having 1024x768 resolution default.</p>
  <p>I don't want to use nircmd and Qres apps for this.</p>
  <p>Also I'm not want to get resolution of monitor highest available.</p>
  <p>Or</p>
  <p><strong>How to set 1024x768 screen resolution using C# console Application?</strong></p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  using System.Runtime.InteropServices;
  
  namespace ConsoleApp4
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              Console.WriteLine(&quot;Hello World!&quot;);
              Console.Read();
          }
      }
  }
  
  
  </code></pre>