基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-14 b84db8983d63a9a981083ebce1a139860c6bdf25
src/Moli.Desktop/Interop/IWin32InteropService.cs
@@ -1,5 +1,6 @@
using System.Windows;
using Moli.Desktop.Configuration;
using Moli.Desktop.Layout;
namespace Moli.Desktop.Interop;
@@ -10,8 +11,9 @@
    void SetClickThrough(IntPtr hwnd, bool enabled);
    void SetToolWindow(IntPtr hwnd, bool enabled);
    void SetNoActivate(IntPtr hwnd, bool enabled);
    void SetLayered(IntPtr hwnd, bool enabled, byte opacity);
    void MoveToDesktopLayer(IntPtr hwnd, DesktopLayerMode mode, MonitorInfo monitor);
    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();
}