Multi-platform .NET bindings to the Ultralight project.
1using System; 2using System.Runtime.InteropServices; 3 4namespace Windows 5{ 6 7 internal static class ShCore 8 { 9 10 [DllImport("ShCore", SetLastError = true)] 11 internal static extern bool SetProcessDpiAwareness(ProcessDpiAwareness awareness); 12 13 [Flags] 14 internal enum ProcessDpiAwareness 15 { 16 17 DpiUnaware = 0, 18 19 SystemDpiAware = 1, 20 21 PerMonitorDpiAware = 2 22 23 } 24 25 } 26 27}