//! Exclude a window from screen capture (`WDA_EXCLUDEFROMCAPTURE`).
use crateCaptureError;
use HWND;
use UI;
/// Mark `hwnd` so Desktop Duplication / WGC omit it (overlay anti-feedback).
///
/// # Errors
///
/// Returns [`CaptureError::InvalidInput`] for a null hwnd, or [`CaptureError::Backend`]
/// when `SetWindowDisplayAffinity` fails.