GetWindowCompositionAttribute function
Retrieves the current value of a specified Desktop Window Manager (DWM) attribute applied to a window.
Syntax
BOOL GetWindowCompositionAttribute(
HWND hwnd,
[INOUT] WINDOWCOMPOSITIONATTRIBDATA* pwcad
);
Parameters
hwnd
An HWND specifying the handle to the window for which the attribute value is to be retrieved.
pwcad
A pointer to a WINDOWCOMPOSITIONATTRIBDATA structure describing which attribute to retrieve and a memory location to hold its value.
Return value
TRUE if the function succeeds; otherwise, FALSE.
Remarks
The use of this API is not recommended. Use DwmGetWindowAttribute instead.
This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions. The API is exported from user32.dll.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
End of client support | Windows 7 |
Header | N/A |
DLL | user32.dll |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈