Multi-platform .NET bindings to the Ultralight project.
1using System;
2using System.Runtime.InteropServices;
3
4namespace Windows
5{
6
7 internal static class User32
8 {
9
10 [DllImport("user32", SetLastError = true)]
11 internal static extern bool SetProcessDpiAwarenessContext(DpiAwarenessContext dpiFlag);
12
13 [DllImport("user32", SetLastError = true)]
14 internal static extern bool SetProcessDPIAware();
15
16 [Flags]
17 internal enum DpiAwarenessContext
18 {
19
20 Unaware = 16,
21
22 SystemAware = 17,
23
24 PerMonitorAware = 18,
25
26 PerMonitorAwareV2 = 34
27
28 }
29
30
31 }
32
33}