# How to hide a window from screen capture on Windows 10 and 11

Source: https://kopya.ai/en/guides/hide-window-from-screen-capture-windows · Updated: 2026-09-22

To hide a window from screen capture on Windows, the app that owns the window has to ask. On Windows 10 version 2004 (build 19041) or newer and on Windows 11, it calls `SetWindowDisplayAffinity` with `WDA_EXCLUDEFROMCAPTURE`, and Windows leaves that window out of supported screen shares and recordings. Older builds show a black rectangle instead. Kopya uses this for its AI panel; results vary by Windows version and capture tool, so test first.

## Can you hide a window from screen capture on Windows?

Yes, but only the app that owns the window can do it. The app calls `SetWindowDisplayAffinity` on its own window with the `WDA_EXCLUDEFROMCAPTURE` flag. From Windows 10 version 2004 onward, Windows keeps that window on your monitor and leaves it out of supported captures. It is an app feature, not a switch in Windows Settings.

[Microsoft’s documentation](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity) puts it plainly: the window is shown on a monitor, and “Everywhere else, the window does not appear at all.” Its own example is recording controls that should stay out of the recording. OBS Studio, Signal and KeePassXC use the same flag; [how screen capture exclusion works](https://kopya.ai/en/guides/how-screen-capture-exclusion-works) covers the API, those precedents and code samples.

## Which Windows version do you need?

You need Windows 10 version 2004 (OS build 19041) or newer, or any version of Windows 11. There, an excluded window is absent from supported captures. On older Windows 10 builds, Windows treats the same request as an older mode, and the window appears in captures as a black rectangle with no content.

*Behaviour documented by Microsoft. It names the release (version 2004); 19041 is that release’s build number.*

| Your Windows | What a capture shows | Why |
| --- | --- | --- |
| Windows 11 | The window is left out | `WDA_EXCLUDEFROMCAPTURE` is supported |
| Windows 10, version 2004 or newer (build 19041+) | The window is left out | The flag was introduced in this release |
| Windows 10 before version 2004 | A black rectangle where the window sits | Falls back to the older `WDA_MONITOR` mode |

Kopya requires the same build, 19041 (64-bit), and warns you if it ever runs on something older.

## How do you check your Windows version and build?

Press the Windows key + R, type `winver` and press Enter. The About Windows box shows a line such as `Version 22H2 (OS Build 19045.xxxx)`. If the OS build is 19041 or higher, or the box says Windows 11, an excluded window is left out of captures rather than blacked out.

The number before the dot is the build; anything below 19041 is too old. Settings → System → About shows the same numbers.

## Why does a hidden window show up as a black rectangle?

A black rectangle means the window is protected with the older `WDA_MONITOR` mode, which keeps the window on your monitor and shows it with no content everywhere else. You get it on Windows 10 builds before 19041 and in apps that choose it on purpose, as the sample in [Microsoft’s Recall guidance](https://learn.microsoft.com/en-us/windows/apps/develop/windows-integration/recall/) does.

When you present, a blank box tells viewers something is there; an excluded window leaves nothing to look at.

## Can you hide any window, or only an app’s own?

Only an app’s own. Microsoft documents three conditions: the window must be a top-level window, it must belong to the process that makes the call, and the Desktop Window Manager (DWM, see the [glossary](https://kopya.ai/en/glossary)) must be composing the desktop. An app cannot use this API to exclude another program’s window.

If an app does not offer this, share a single window instead, or keep the window on a display you are not sharing. [Five ways to hide a window from a screen share](https://kopya.ai/en/guides/hide-window-from-screen-share) compares them.

## What does capture exclusion not hide on Windows?

It keeps one window out of software capture, and nothing more. A phone camera, a person looking at your screen, a projector or mirrored display, the app’s tray icon and its process in Task Manager are all unaffected, as is monitoring software that inspects processes. Microsoft says the feature is not a security or DRM mechanism.

- **Displays.** A projector or mirrored display is a monitor, so people in the room see the panel even when people on the call do not.
- **Other windows.** The flag is set per window. A tray icon, its menu or a sign-in window stays capturable.
- **The flag itself.** Any process can read it with `GetWindowDisplayAffinity`, as [Microsoft documents](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowdisplayaffinity).

> **Not a security boundary** Microsoft gives no assurance that content stays uncaptured; its own example is someone photographing the screen. Treat capture exclusion as a way to avoid accidental disclosure. [What an invisible AI overlay is, and its limits](https://kopya.ai/en/guides/what-is-an-invisible-ai-overlay) explains the wording Kopya avoids.

## How does Kopya use capture exclusion on Windows?

Kopya is a desktop AI assistant for macOS and Windows that answers questions about what is on your screen when you press a hotkey; its panel is excluded from supported screen shares and recordings. On Windows it does this through Electron’s `setContentProtection`, which [Electron documents](https://www.electronjs.org/docs/latest/api/browser-window) as using `WDA_EXCLUDEFROMCAPTURE`.

- **On by default, on every plan**, including the free plan with no card required ([pricing](https://kopya.ai/en/pricing)).
- **Three toggles:** Ctrl+Shift+P, the panel’s privacy button, or the system-tray menu. The panel shows its state: “Hidden in screen shares” or “Visible in screen shares”.
- **Only the panel is excluded.** The tray icon, its menu and the sign-in window are ordinary windows.
- **Capture only on your hotkey.** Ctrl+Shift+Space takes one screenshot of the primary display. Kopya does not join calls or record audio.
- **Not code-signed yet.** Expect a SmartScreen prompt on first launch ([download](https://kopya.ai/en/download)).

The [screen-share privacy feature page](https://kopya.ai/en/invisible-to-screen-recording) covers both systems, but Windows is the stronger side. On macOS, Apple calls the equivalent flag a legacy constant, [Electron documents](https://www.electronjs.org/docs/latest/api/browser-window) that apps capturing through ScreenCaptureKit capture the window anyway, and built-in screen recording on recent macOS has been reported to show the panel. Read [hiding an app from screen recording on Mac](https://kopya.ai/en/guides/hide-app-from-screen-recording-mac) before you rely on it there.

> **Where Kopya must not be used** Do not use Kopya in exams, interviews, assessments or other settings that prohibit outside assistance. Screen-share privacy is for places where AI assistance is allowed, such as [presenting](https://kopya.ai/en/use-cases/presenting) and [recording tutorials](https://kopya.ai/en/use-cases/recording-tutorials), so viewers see your work instead of your personal panel. See the [acceptable-use terms](https://kopya.ai/en/legal/terms#acceptable-use) and [responsible use](https://kopya.ai/en/responsible-use).

## How do you test it on your own PC?

Microsoft does not list which capture methods respect the flag, so check your own setup with the exact tool and share mode you plan to use, and look at what the other side actually sees.

1. Make sure the panel says “Hidden in screen shares”. Ctrl+Shift+P toggles it.
2. Start the exact tool and share mode you plan to use, or a recording.
3. Join from a second device, or record ten seconds and play it back.
4. If the panel appears, share a single window, move the panel to a display you are not sharing, or close it. Re-test after Windows or app updates.

The canonical checklist is the [60-second self-test](https://kopya.ai/en/screen-share-compatibility#self-test). The [compatibility page](https://kopya.ai/en/screen-share-compatibility) tracks what each vendor documents; the [answers page](https://kopya.ai/en/answers) and the [other screen-share privacy guides](https://kopya.ai/en/guides) cover the rest.

## Common questions

### Does it work in Zoom, Teams, Google Meet and OBS?

Kopya has not published test results for Zoom, Microsoft Teams, Google Meet or OBS Studio yet, and Microsoft’s documentation names no capture tools. OBS documents [an option that hides its own windows](https://github.com/obsproject/obs-studio/pull/5698) with this flag. Run the [60-second self-test](https://kopya.ai/en/screen-share-compatibility#self-test), then read the [Zoom, Meet and Teams guide](https://kopya.ai/en/guides/zoom-meet-teams-screen-share).

### Does capture exclusion also cover screenshots and the Snipping Tool?

Microsoft lists no individual tools. [Signal](https://signal.org/blog/signal-doesnt-recall/), which uses the same mechanism for its screen security setting, says nothing appears when you screenshot its window on Windows 11. Kopya has not published Snipping Tool results yet, so take a test screenshot.

### Does it keep a window out of Windows Recall?

Microsoft’s Recall guidance tells app developers to use `SetWindowDisplayAffinity` to keep a window’s content out of Recall snapshots. Kopya has not published a Recall test for its panel yet; this page reports only what Microsoft documents for the API.

### Is hiding a window from capture a hack?

No. `SetWindowDisplayAffinity` is a public, documented Windows API, and Microsoft’s own example is keeping recording controls out of a recording. What matters is where you use it: the [responsible use](https://kopya.ai/en/responsible-use) page sets out what Kopya permits.

## Sources

1. [Microsoft Learn — SetWindowDisplayAffinity](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity)
2. [Microsoft Learn — GetWindowDisplayAffinity](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowdisplayaffinity)
3. [Microsoft Learn — Recall guidance for app developers](https://learn.microsoft.com/en-us/windows/apps/develop/windows-integration/recall/)
4. [Electron docs — BrowserWindow (setContentProtection)](https://www.electronjs.org/docs/latest/api/browser-window)
5. [OBS Studio PR #5698 — hide OBS windows from capture](https://github.com/obsproject/obs-studio/pull/5698)
6. [Signal blog — Screen security on Windows](https://signal.org/blog/signal-doesnt-recall/)
7. [KeePassXC PR #6030 — screen capture protection](https://github.com/keepassxreboot/keepassxc/pull/6030)
