public static void EnableTaskbarTransparency() { if (API.hTaskBars.Count == 0) { MessageBox.Show("Can't find Taskbar", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } API.DWM_BLURBEHIND dWM_BLURBEHIND = default(API.DWM_BLURBEHIND); dWM_BLURBEHIND.dwFlags = API.DWM_BB.Enable; dWM_BLURBEHIND.fEnable = false; foreach (IntPtr current in API.hTaskBars) { API.DwmEnableBlurBehindWindow(current, ref dWM_BLURBEHIND); } }
private static extern void DwmEnableBlurBehindWindow(IntPtr hwnd, ref API.DWM_BLURBEHIND blurBehind);