基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-12 da97410f48a1e94d7e1fe019c69a7c847fe67ddf
src/Moli.Desktop/Interop/IWin32InteropService.cs
@@ -11,9 +11,8 @@
    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 MoveToDesktopLayer(IntPtr hwnd, DesktopLayerMode mode, RectD bounds);
    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();