基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-04 b3bde921167ee0a7dc21cf7e3d642840a0fcc11e
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);
}