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.
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.
// Install Vanara.PInvoke.DwmApi as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.DwmApi&version=4.1.1

// Install Vanara.PInvoke.DwmApi as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.DwmApi&version=4.1.1                

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 5 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
Version Downloads Last updated
4.1.1 1,166 3/7/2025
4.1.0 278 3/7/2025
4.0.6 349 2/24/2025
4.0.5 494 2/8/2025
4.0.4 4,041 9/13/2024
4.0.3 1,724 8/5/2024
4.0.2 4,395 6/24/2024
4.0.1 4,543 4/30/2024
4.0.0 2,752 3/29/2024
4.0.0-beta2 250 1/22/2024
4.0.0-beta 239 11/20/2023
3.4.17 18,256 10/18/2023
3.4.16 8,171 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,725 1/15/2023
3.4.11 2,951 11/15/2022
3.4.10 3,330 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,116 7/5/2022
3.4.3 4,468 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,028 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 880 5/7/2021
3.3.8 884 4/7/2021
3.3.7 835 3/24/2021
3.3.6 750 3/19/2021
3.3.5 794 3/1/2021
3.3.4 4,146 2/11/2021
3.3.3 796 2/3/2021
3.3.2 871 1/21/2021
3.3.1 926 1/20/2021
3.3.0 1,182 11/20/2020
3.2.21 874 11/13/2020
3.2.20 997 11/8/2020
3.2.19 925 10/23/2020
3.2.18 919 10/21/2020
3.2.17 1,036 9/20/2020
3.2.16 933 9/7/2020
3.2.15 963 8/30/2020
3.2.14 921 8/20/2020
3.2.13 1,007 7/27/2020
3.2.12 892 7/13/2020
3.2.11 1,019 6/28/2020
3.2.10 1,037 6/14/2020
3.2.9 1,051 6/3/2020
3.2.7 992 5/4/2020
3.2.6 1,013 4/21/2020
3.2.5 951 4/15/2020
3.2.4 950 4/12/2020
3.2.3 946 4/1/2020
3.2.2 949 3/24/2020
3.2.1 985 3/17/2020
3.2.0 1,191 2/27/2020
3.1.9 1,040 1/17/2020
3.1.8 1,043 1/13/2020
3.1.7 999 1/6/2020
3.1.6 1,020 12/12/2019
3.1.5 1,134 11/26/2019
3.1.4 974 11/25/2019
3.1.3 948 11/8/2019
3.1.2 989 11/4/2019
3.1.1 977 10/17/2019
3.1.0 992 10/3/2019
3.0.1 875 9/20/2019
3.0.0 695 8/27/2019
2.3.11 778 6/9/2019
2.3.10 693 6/5/2019
2.3.9 703 5/26/2019
2.3.8 696 5/13/2019
2.3.7 741 4/24/2019
2.3.6 699 4/17/2019
2.3.5 703 4/10/2019
2.3.4 723 3/9/2019
2.3.3 670 3/8/2019
2.3.2 735 2/28/2019
2.3.1 724 2/25/2019
2.3.0 738 2/22/2019
2.2.1 770 2/12/2019
2.2.0 796 2/1/2019
2.1.2 1,084 1/14/2019
2.1.0 1,030 12/15/2018
2.0.1 819 12/7/2018
2.0.0 841 11/28/2018
1.1.0 1,026 9/10/2018
1.0.18 1,037 8/10/2018
1.0.17 979 7/30/2018
1.0.16 1,171 6/29/2018
1.0.15 1,096 6/27/2018
1.0.14 1,279 6/8/2018
1.0.13 1,120 6/6/2018
1.0.12 1,190 4/5/2018
1.0.11 1,165 4/4/2018
1.0.10 1,012 3/27/2018
1.0.9 1,123 3/26/2018
1.0.8 1,168 2/7/2018
1.0.7 1,143 1/27/2018
1.0.6 1,253 1/8/2018
1.0.5 1,195 12/28/2017
1.0.4 1,261 12/15/2017
1.0.3 1,083 12/8/2017
1.0.2 1,071 11/30/2017
1.0.1 1,059 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