基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-12 574a6a769115034f37bdecf3284545d74843816a
src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs
@@ -1,11 +1,12 @@
using Moli.Desktop.Configuration;
using Moli.Desktop.Layout;
namespace Moli.Desktop.Interop;
/// <summary>Places a wallpaper window into a desktop-compatible layer.</summary>
/// <summary>Places a rendered surface into a desktop-compatible layer.</summary>
public interface IDesktopLayerStrategy
{
    string Name { get; }
    bool IsSupported();
    bool TryAttachWallpaperWindow(IntPtr hwnd, MonitorInfo monitor, out string? error);
    bool TryAttachDesktopWindow(IntPtr hwnd, MonitorInfo monitor, RectD bounds, out string? error);
}