using System.Runtime.InteropServices; namespace MicaSetup.Natives; public static class DwmApi { [DllImport(Lib.DwmApi)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] public static extern int DwmSetWindowAttribute(nint hwnd, DWMWINDOWATTRIBUTE dwAttribute, ref int pvAttribute, int cbAttribute); public static int DwmSetWindowAttribute(nint hwnd, DWMWINDOWATTRIBUTE dwAttribute, int pvAttribute, int cbAttribute) { return DwmSetWindowAttribute(hwnd, dwAttribute, ref pvAttribute, cbAttribute); } public enum DWM_SYSTEMBACKDROP_TYPE { /// /// The default. Let the Desktop Window Manager (DWM) automatically decide the system-drawn backdrop material for this window. /// DWMSBT_AUTO, /// Don't draw any system backdrop. DWMSBT_NONE, /// Draw the backdrop material effect corresponding to a long-lived window. DWMSBT_MAINWINDOW, /// Draw the backdrop material effect corresponding to a transient window. DWMSBT_TRANSIENTWINDOW, /// Draw the backdrop material effect corresponding to a window with a tabbed title bar. DWMSBT_TABBEDWINDOW, } }