Retrieves the current display affinity setting, from any process, for a given window
#include <WinAPISysWin.au3>
_WinAPI_GetWindowDisplayAffinity ( $hWnd )
$hWnd | Handle to the window for which display affinity setting is retrieved. |
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. |
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.
_WinAPI_SetWindowDisplayAffinity
Search GetWindowDisplayAffinity in MSDN Library.