Skip to content

Instantly share code, notes, and snippets.

@ADeltaX
Last active March 13, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ADeltaX/5a1c91b590aff27788666c449b90ef8e to your computer and use it in GitHub Desktop.
Save ADeltaX/5a1c91b590aff27788666c449b90ef8e to your computer and use it in GitHub Desktop.
DPI Reset - Temporarily sets DPI to first value
using System;
using System.Runtime.InteropServices;
class Program
{
[DllImport("user32.dll")]
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, IntPtr pvParam, uint val);
static void Main() => SystemParametersInfo(0x009F, 0, IntPtr.Zero, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment