You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.InteropServices;
  4. using System.Text;
  5. namespace Apewer.Internals.Interop
  6. {
  7. class DwmApi
  8. {
  9. [DllImport("dwmapi.dll", PreserveSig = false)]
  10. public static extern void DwmEnableBlurBehindWindow(IntPtr hWnd, DWM_BLURBEHIND pBlurBehind);
  11. [DllImport("dwmapi.dll", PreserveSig = false)]
  12. public static extern void DwmEnableComposition(bool bEnable);
  13. [DllImport("dwmapi.dll", PreserveSig = false)]
  14. public static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
  15. [DllImport("dwmapi.dll", PreserveSig = false)]
  16. public static extern void DwmExtendFrameIntoClientArea(IntPtr hWnd, MARGINS pMargins);
  17. [DllImport("dwmapi.dll", PreserveSig = false)]
  18. public static extern void DwmGetColorizationColor(out int pcrColorization, [MarshalAs(UnmanagedType.Bool)] out bool pfOpaqueBlend);
  19. [DllImport("dwmapi.dll", PreserveSig = false)]
  20. public static extern bool DwmIsCompositionEnabled();
  21. [DllImport("dwmapi.dll", PreserveSig = false)]
  22. public static extern void DwmQueryThumbnailSourceSize(IntPtr hThumbnail, out Size size);
  23. [DllImport("dwmapi.dll", PreserveSig = false)]
  24. public static extern IntPtr DwmRegisterThumbnail(IntPtr dest, IntPtr source);
  25. [DllImport("dwmapi.dll", PreserveSig = false)]
  26. public static extern void DwmUnregisterThumbnail(IntPtr hThumbnail);
  27. [DllImport("dwmapi.dll", PreserveSig = false)]
  28. public static extern void DwmUpdateThumbnailProperties(IntPtr hThumbnail, DWM_THUMBNAIL_PROPERTIES props);
  29. }
  30. }