SystemTrayMenu/NativeDllImport/SetProcessDPIAware.cs

15 lines
343 B
C#

using System.Runtime.InteropServices;
namespace SystemTrayMenu.DllImports
{
public static partial class NativeMethods
{
[DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();
public static void User32SetProcessDPIAware()
{
_ = SetProcessDPIAware();
}
}
}