https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/nf-dwmapi-dwmgetwindowattribute?redirectedfrom=MSDN
DwmGetWindowAttribute function (dwmapi.h) - Win32 apps | Microsoft Learn
Retrieves the current value of a specified Desktop Window Manager (DWM) attribute applied to a window.
functionhappsmicrosoftlearn