Function Reference


_WinAPI_GetWindowDisplayAffinity

Retrieves the current display affinity setting, from any process, for a given window

#include <WinAPISysWin.au3>
_WinAPI_GetWindowDisplayAffinity ( $hWnd )

Parameters

$hWnd Handle to the window for which display affinity setting is retrieved.

Return Value

Success: The current window's display affinity setting ($WDA_*).
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

Remarks

This function succeeds only when the window is layered and Desktop Windows Manager (DWM) is composing the desktop.
For more information, see _WinAPI_SetWindowDisplayAffinity().

This function requires Windows 7 or later.

Related

_WinAPI_SetWindowDisplayAffinity

See Also

Search GetWindowDisplayAffinity in MSDN Library.