基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-04 ddd6889459bccf5015cd0c9629cdf4f4ce8fb8e1
src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs
@@ -1,11 +1,11 @@
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, RectD bounds, out string? error);
}