基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-12 da97410f48a1e94d7e1fe019c69a7c847fe67ddf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Windows;
using Moli.Desktop.Configuration;
using Moli.Desktop.Layout;
 
namespace Moli.Desktop.Interop;
 
/// <summary>Facade over Win32 window behavior used by desktop surfaces.</summary>
public interface IWin32InteropService
{
    IntPtr GetWindowHandle(Window window);
    void SetClickThrough(IntPtr hwnd, bool enabled);
    void SetToolWindow(IntPtr hwnd, bool enabled);
    void SetNoActivate(IntPtr hwnd, bool enabled);
    void SetLayered(IntPtr hwnd, bool enabled);
    void MoveToDesktopLayer(IntPtr hwnd, DesktopLayerMode mode, MonitorInfo monitor, RectD bounds);
    void RestoreTopLevelWindow(IntPtr hwnd);
    void SetBottomMost(IntPtr hwnd);
    IReadOnlyList<MonitorInfo> GetMonitors();
}