Vanara.PInvoke.DwmApi 4.1.1

Prefix Reserved
dotnet add package Vanara.PInvoke.DwmApi --version 4.1.1
                    
NuGet\Install-Package Vanara.PInvoke.DwmApi -Version 4.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.DwmApi" Version="4.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vanara.PInvoke.DwmApi" Version="4.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Vanara.PInvoke.DwmApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vanara.PInvoke.DwmApi --version 4.1.1
                    
#r "nuget: Vanara.PInvoke.DwmApi, 4.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Vanara.PInvoke.DwmApi&version=4.1.1
                    
Install Vanara.PInvoke.DwmApi as a Cake Addin
#tool nuget:?package=Vanara.PInvoke.DwmApi&version=4.1.1
                    
Install Vanara.PInvoke.DwmApi as a Cake Tool

Vanara

Vanara.PInvoke.DwmApi NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows DwmApi.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the AppVeyor build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.DwmApi

Functions Enumerations Structures
DwmDefWindowProc DwmEnableBlurBehindWindow DwmEnableComposition DwmEnableMMCSS DwmExtendFrameIntoClientArea DwmFlush DwmGetColorizationColor DwmGetCompositionTimingInfo DwmGetTransportAttributes DwmGetUnmetTabRequirements DwmGetWindowAttribute DwmInvalidateIconicBitmaps DwmIsCompositionEnabled DwmpGetColorizationParameters DwmpSetColorizationParameters DwmQueryThumbnailSourceSize DwmRegisterThumbnail DwmRenderGesture DwmSetIconicLivePreviewBitmap DwmSetIconicThumbnail DwmSetWindowAttribute DwmShowContact DwmTetherContact DwmTransitionOwnedWindow DwmUnregisterThumbnail DwmUpdateThumbnailProperties DWM_BLURBEHIND_Mask DWM_CLOAKED DWM_SETICONICPREVIEW_Flags DWM_SHOWCONTACT DWM_TAB_WINDOW_REQUIREMENTS DWM_TNP DWMFLIP3DWINDOWPOLICY DWMNCRENDERINGPOLICY DWMTRANSITION_OWNEDWINDOW_TARGET DWM_SYSTEMBACKDROP_TYPE DWM_WINDOW_CORNER_PREFERENCE DWMWINDOWATTRIBUTE GESTURE_TYPE DWM_BLURBEHIND DWM_COLORIZATION_PARAMS DWM_THUMBNAIL_PROPERTIES DWM_TIMING_INFO MARGINS UNSIGNED_RATIO
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows7.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.DwmApi:

Package Downloads
NetDimension.NanUI

Easily buid powerful WinForm applications with HTML, CSS and JavaScript.

Vanara.Windows.Forms

Classes for user interface related items derived from the Vanara PInvoke libraries. Includes extensions for almost all common controls to give post Vista capabilities, WinForms controls (panel, commandlink, enhanced combo boxes, IPAddress, split button, trackbar and themed controls), shutdown/restart/lock control, buffered painting, resource files, access control editor, simplifed designer framework for Windows.Forms.

Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

Nickvision.WinUI

A framework for creating Nickvision applications with the Windows App SDK.

NetAutoGUI.Windows

Package Description

GitHub repositories (9)

Showing the top 9 popular GitHub repositories that depend on Vanara.PInvoke.DwmApi:

Repository Stars
babalae/better-genshin-impact
📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI Automation Testing Tools For Genshin Impact
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
XuanchenLin/NanUI
NanUI is an open source .NET project for developers who want to create Windows desktop applications with HTML, CSS and JavaScript.
yoshiask/FluentStore
A unifying frontend for Windows app stores and package managers
cnbluefire/HotLyric
热词,为 HyPlayer 和 LyricEase 提供桌面歌词支持。https://www.microsoft.com/store/productId/9MXFFHVQVBV9
glsorre/amethystwindows
[ARCHIVED] Automatic tiling window manager for Windows 10/11
not-nullptr/Aerochat
Native rewrite of Aerochat, a WLM 09 themed Discord client
Miaoyww/NonsPlayer
Multiple music streaming services & High performance.多音源 | 高性能。能播放所有平台音乐的音乐播放器
babalae/better-wuthering-waves
🌊更好的鸣潮 - 后台自动剧情
Version Downloads Last updated
4.1.1 1,466 3/7/2025
4.1.0 282 3/7/2025
4.0.6 364 2/24/2025
4.0.5 531 2/8/2025
4.0.4 4,148 9/13/2024
4.0.3 1,736 8/5/2024
4.0.2 4,549 6/24/2024
4.0.1 4,554 4/30/2024
4.0.0 2,754 3/29/2024
4.0.0-beta2 250 1/22/2024
4.0.0-beta 239 11/20/2023
3.4.17 18,266 10/18/2023
3.4.16 8,198 8/7/2023
3.4.15 3,131 5/18/2023
3.4.14 525 4/15/2023
3.4.13 2,294 2/4/2023
3.4.12 8,735 1/15/2023
3.4.11 2,953 11/15/2022
3.4.10 3,332 10/25/2022
3.4.9 1,475 10/3/2022
3.4.8 1,038 9/16/2022
3.4.7 992 9/3/2022
3.4.6 1,141 8/7/2022
3.4.5 1,192 7/17/2022
3.4.4 1,118 7/5/2022
3.4.3 4,470 6/14/2022
3.4.2 2,312 5/13/2022
3.4.1 1,190 5/5/2022
3.4.0 4,247 3/14/2022
3.3.15 9,033 12/27/2021
3.3.14 2,840 10/26/2021
3.3.13 815 9/30/2021
3.3.12 843 8/30/2021
3.3.11 778 7/22/2021
3.3.10 893 6/4/2021
3.3.9 881 5/7/2021
3.3.8 885 4/7/2021
3.3.7 836 3/24/2021
3.3.6 751 3/19/2021
3.3.5 797 3/1/2021
3.3.4 4,184 2/11/2021
3.3.3 799 2/3/2021
3.3.2 874 1/21/2021
3.3.1 929 1/20/2021
3.3.0 1,185 11/20/2020
3.2.21 877 11/13/2020
3.2.20 1,000 11/8/2020
3.2.19 928 10/23/2020
3.2.18 922 10/21/2020
3.2.17 1,039 9/20/2020
3.2.16 936 9/7/2020
3.2.15 966 8/30/2020
3.2.14 924 8/20/2020
3.2.13 1,010 7/27/2020
3.2.12 895 7/13/2020
3.2.11 1,022 6/28/2020
3.2.10 1,039 6/14/2020
3.2.9 1,054 6/3/2020
3.2.7 995 5/4/2020
3.2.6 1,016 4/21/2020
3.2.5 954 4/15/2020
3.2.4 953 4/12/2020
3.2.3 949 4/1/2020
3.2.2 952 3/24/2020
3.2.1 988 3/17/2020
3.2.0 1,194 2/27/2020
3.1.9 1,043 1/17/2020
3.1.8 1,046 1/13/2020
3.1.7 1,002 1/6/2020
3.1.6 1,023 12/12/2019
3.1.5 1,137 11/26/2019
3.1.4 977 11/25/2019
3.1.3 951 11/8/2019
3.1.2 992 11/4/2019
3.1.1 980 10/17/2019
3.1.0 996 10/3/2019
3.0.1 879 9/20/2019
3.0.0 699 8/27/2019
2.3.11 782 6/9/2019
2.3.10 697 6/5/2019
2.3.9 707 5/26/2019
2.3.8 700 5/13/2019
2.3.7 745 4/24/2019
2.3.6 703 4/17/2019
2.3.5 707 4/10/2019
2.3.4 727 3/9/2019
2.3.3 674 3/8/2019
2.3.2 739 2/28/2019
2.3.1 728 2/25/2019
2.3.0 742 2/22/2019
2.2.1 774 2/12/2019
2.2.0 800 2/1/2019
2.1.2 1,092 1/14/2019
2.1.0 1,037 12/15/2018
2.0.1 822 12/7/2018
2.0.0 844 11/28/2018
1.1.0 1,030 9/10/2018
1.0.18 1,041 8/10/2018
1.0.17 986 7/30/2018
1.0.16 1,182 6/29/2018
1.0.15 1,107 6/27/2018
1.0.14 1,290 6/8/2018
1.0.13 1,131 6/6/2018
1.0.12 1,201 4/5/2018
1.0.11 1,176 4/4/2018
1.0.10 1,019 3/27/2018
1.0.9 1,134 3/26/2018
1.0.8 1,179 2/7/2018
1.0.7 1,154 1/27/2018
1.0.6 1,264 1/8/2018
1.0.5 1,206 12/28/2017
1.0.4 1,272 12/15/2017
1.0.3 1,090 12/8/2017
1.0.2 1,078 11/30/2017
1.0.1 1,066 11/28/2017

Currently implements:

Functions
DwmDefWindowProc DwmEnableBlurBehindWindow DwmEnableComposition DwmEnableMMCSS DwmExtendFrameIntoClientArea DwmFlush DwmGetColorizationColor DwmGetCompositionTimingInfo DwmGetTransportAttributes DwmGetUnmetTabRequirements DwmGetWindowAttribute DwmInvalidateIconicBitmaps DwmIsCompositionEnabled DwmpGetColorizationParameters DwmpSetColorizationParameters DwmQueryThumbnailSourceSize DwmRegisterThumbnail DwmRenderGesture DwmSetIconicLivePreviewBitmap DwmSetIconicThumbnail DwmSetWindowAttribute DwmShowContact DwmTetherContact DwmTransitionOwnedWindow DwmUnregisterThumbnail DwmUpdateThumbnailProperties

Structures
DWM_BLURBEHIND DWM_COLORIZATION_PARAMS DWM_THUMBNAIL_PROPERTIES DWM_TIMING_INFO MARGINS UNSIGNED_RATIO