-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathNativeWrapper.cs
More file actions
54 lines (42 loc) · 1.89 KB
/
NativeWrapper.cs
File metadata and controls
54 lines (42 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Runtime.InteropServices;
namespace Mile.Xaml
{
public class NativeWrapper
{
[DllImport("Mile.Xaml.dll")]
public static extern IntPtr MileXamlGetCoreWindowHandle();
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlSetXamlContentForContentWindow(
IntPtr WindowHandle,
IntPtr XamlContent);
[DllImport("Mile.Xaml.dll")]
public static extern IntPtr MileXamlContentWindowDefaultCallback(
IntPtr hWnd,
uint uMsg,
IntPtr wParam,
IntPtr lParam);
[DllImport("Mile.Xaml.dll")]
public static extern int MileXamlContentWindowDefaultMessageLoop();
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlGetTransparentBackgroundAttribute(
out bool TransparentBackground);
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlSetTransparentBackgroundAttribute(
bool TransparentBackground);
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlGetPreferredDarkModeAttribute(
out bool PreferredDarkMode);
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlSetPreferredDarkModeAttribute(
bool PreferredDarkMode);
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlThreadInitialize();
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlThreadUninitialize();
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlGlobalInitialize();
[DllImport("Mile.Xaml.dll", PreserveSig = true)]
public static extern void MileXamlGlobalUninitialize();
}
}