Blog

Privacy · Guides

How to Hide an AI Assistant from Screen Share on Windows (Win32 & DirectX)

The Odrivyn team · Updated · 9 min read

The short answer

Windows hides application windows from screen capture through the SetWindowDisplayAffinity API with the WDA_EXCLUDEFROMCAPTURE flag. The Windows Desktop Window Manager bypasses the window during screen capture passes and renders the underlying desktop background instead. Zoom, Microsoft Teams, Google Meet, and screen recorders capture only the content beneath the assistant window.

Why standard note applications fail during screen sharing

Screen sharing remains a daily requirement for remote presentations, technical interviews, and software demonstrations. Presenters share full desktop displays to alternate between code editors, web browsers, and presentation slides without interrupting meeting flow.

Standard note-taking applications (such as Notion, Obsidian, and system text editors) draw their interfaces onto the shared desktop composition surface. When you open a note window to check talking points or interview prompts, every meeting participant views the content.

Sharing an isolated program window introduces practical friction. System notifications, background alerts, and popup dialogs from other software often overlap the shared application border, causing unintentional exposure of confidential data.

The Windows Desktop Window Manager composition pipeline

Windows coordinates graphical display rendering through the Desktop Window Manager (dwm.exe). In Windows 10 version 2004 (Build 19041), Microsoft expanded the Win32 SetWindowDisplayAffinity function by adding the WDA_EXCLUDEFROMCAPTURE constant.

The function accepts a native window handle (HWND) and an affinity parameter: WDA_NONE (0x00), WDA_MONITOR (0x01), or WDA_EXCLUDEFROMCAPTURE (0x11).

When software registers WDA_EXCLUDEFROMCAPTURE, the compositing engine treats that specific window surface as transparent whenever an external process invokes screen capture APIs. The operating system copies the underlying desktop background into the capture buffer, while painting the assistant window onto your physical hardware monitor.

Conferencing platforms (including Zoom, Microsoft Teams, Google Meet, and Slack) capture screen frames via standard Windows Graphics Capture or BitBlt routines. The operating system applies the display affinity filter before returning frame buffers to the meeting software.

DirectX swapchain composition and the desktop window tree

Windows Desktop Window Manager coordinates display updates through Direct3D swapchains. When an application paints its interface, it submits pixel surfaces to DWM, which combines individual window surfaces into a single display frame.

Legacy screen capture tools relied on the Win32 GDI function BitBlt, which copied raster pixel blocks from the screen device context. Modern conferencing software uses the Windows Graphics Capture API or the Desktop Duplication API, which read straight from Direct3D video memory surfaces.

Because WDA_EXCLUDEFROMCAPTURE acts within the core DWM compositing tree, the exclusion applies across both legacy GDI screen scraping and modern Direct3D video pipelines. The operating system compositing pipeline swaps the excluded window surface with the background surface before submitting the frame buffer to the capture consumer.

Why web browser and Electron window wrappers leak during presentation

Many desktop utilities package web engines inside Electron or Chromium wrappers. These frameworks introduce layers of abstraction between the application and the underlying operating system.

When an Electron application attempts to toggle window visibility, its multi-process architecture often creates race conditions. The browser window paints on a separate DirectX swap chain before the Win32 affinity call attaches to the top-level window handle. In multi-monitor configurations, moving a window across screens with differing DPI scale factors can reset window styles, flashing confidential notes onto the shared video feed.

Odrivyn prevents these visual leaks by compiling as a native Rust desktop binary. The program applies WDA_EXCLUDEFROMCAPTURE during initial window creation before displaying a single frame, preventing accidental exposure across all monitor configurations.

Screen capture compatibility across major conferencing applications

Verified on Windows 10 Enterprise and Windows 11 Pro across Intel, AMD, and NVIDIA display hardware drivers.

Conferencing softwareSelected capture modeAssistant window stateWhat meeting attendees view
Zoom Desktop ClientShare Full Screen (Desktop 1)Excluded from capture bufferDesktop wallpaper and application windows positioned behind the assistant
Microsoft TeamsEntire Screen SharingExcluded from capture bufferUnderlying content with zero window outlines or visual artifacts
Google Meet (Chrome / Edge)Entire Screen TabExcluded from capture bufferClean desktop background with steady frame rate and zero flicker
Slack HuddlesFull Monitor BroadcastExcluded from capture bufferOnly applications running underneath the Odrivyn interface
OBS Studio / CamtasiaDisplay Capture SourceExcluded from capture bufferClean recorded video feed containing zero assistant overlays
Windows Snipping ToolRectangular Capture (Win+Shift+S)Excluded from capture bufferSaved screenshot displays background wallpaper with zero overlay pixels

Operating system capture exclusion behavior verified with hardware acceleration enabled.

Step-by-step verification: confirm your window stays hidden before a call

Follow this four-step audit on your workstation before starting an important customer presentation or remote interview.

Step 1: Open Odrivyn and place the window over your desktop wallpaper or an open web browser page.

Step 2: Press the Windows shortcut key combination: Windows key + Shift + S. This keyboard shortcut invokes the Windows Snipping Tool overlay.

Step 3: Drag a selection rectangle over the screen area where the Odrivyn window rests.

Step 4: Paste the captured screenshot into an image viewer or document. If display affinity operates as intended, the image shows your desktop wallpaper or browser content, with zero trace of the assistant window.

Step 5: Launch a solo rehearsal meeting in Zoom or Microsoft Teams, share your entire desktop screen, and inspect the meeting preview pane to confirm visual isolation.

Architectural performance: native Rust Win32 vs Electron memory footprint

Heavy desktop applications built on Electron or Chromium bundle complete web browser runtimes, consuming 500 to 900 megabytes of working memory and creating GPU context contention during 4K monitor sharing.

Odrivyn compiles as a native Rust application with Win32 window creation bindings. The executable file weighs 5.7 megabytes and consumes 34 megabytes of resident memory during active meetings.

The lightweight native architecture prevents frame drops during screen presentations and applies WDA_EXCLUDEFROMCAPTURE at window initialization, ensuring the application never renders an unprotected visual frame.

Frequently asked questions

Does capture exclusion require administrator privileges?

No. Any standard user-level Windows process can set display affinity on windows created within its own execution thread.

Can call participants detect an attendee bot in the meeting?

No bot enters the meeting. The software operates as an independent local desktop program that reads audio from your local sound card drivers.

Does WDA_EXCLUDEFROMCAPTURE work on older Windows versions?

Windows 10 version 2004 (Build 19041) or newer is required. On older builds, the operating system renders a solid black box rather than a transparent capture layer.

Does display affinity protect against external video cameras?

No. Display affinity instructs operating system capture software to skip the window. It cannot prevent a physical camera pointed at your hardware monitor from capturing emitted light.

Can I toggle capture exclusion off if I want to show notes?

Yes. You can toggle capture protection on or off in Settings whenever you choose to demonstrate the assistant to colleagues.

Sources

Take Odrivyn on your next call

Free for Windows. Set up in five minutes.

Keep reading