SystemTrayMenu/NativeDllImport/SetProcessDPIAware.cs
2020-10-19 13:11:41 +02:00

24 lines
637 B
C#

// <copyright file="SetProcessDPIAware.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace SystemTrayMenu.DllImports
{
using System.Runtime.InteropServices;
/// <summary>
/// wraps the methodcalls to native windows dll's.
/// </summary>
public static partial class NativeMethods
{
public static void User32SetProcessDPIAware()
{
_ = SetProcessDPIAware();
}
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern bool SetProcessDPIAware();
}
}