GetWindowDisplayAffinity function user32
Retrieves the current display affinity setting, from any process, for a given window.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowdisplayaffinity.
Implementation
Win32Result<bool> GetWindowDisplayAffinity(
HWND hWnd,
Pointer<Uint32> pdwAffinity,
) {
final result_ = GetWindowDisplayAffinity_Wrapper(hWnd, pdwAffinity);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}