wails/v3/pkg/w32
Lea Anthony 3f11d4e3fa
feat: Add Content Protection for Windows and macOS (#4485)
* feat: Add Content Protection for Windows and macOS

- Prevents window contents from being captured by screen recording/sharing software
- Windows: Uses WDA_EXCLUDEFROMCAPTURE on Windows 10 2004+, falls back to WDA_MONITOR
- macOS: Uses NSWindowSharingType to set window as read-only for screen sharing
- Added ContentProtectionEnabled option to WebviewWindowOptions
- Added SetContentProtection() method for runtime control
- Added comprehensive documentation and example usage

* fix changelog.mdx

* Misc fixes

* Misc fixes

* Update v3/pkg/w32/user32.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Remove debug line

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-09 17:12:39 +10:00
..
actions.go Improved menus. 2024-09-17 21:19:00 +10:00
clipboard.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
com.go [windows] Drag-n-drop support 2023-10-21 11:21:10 +11:00
comctl32.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
comdlg32.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
constants.go feature: V3 alpha feature/snapassist support (#4463) 2025-08-02 16:59:49 +10:00
consts.go Improved logging++ 2023-08-13 16:52:39 +10:00
dialogs.go [windows] Fix dialog icon 2023-10-09 17:34:56 +11:00
dwmapi.go Add window.GetBorderSizes 2024-04-25 15:22:01 +10:00
gdi32.go feat: Add full dark mode support for Windows menus 2025-07-25 06:31:46 +10:00
gdiplus.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
guid.go [v3 windows] Initial support for start_on_login plugin for windows 2023-06-24 21:12:24 +10:00
icon.go move icon method, impl interface, check compat, don't panic! 2025-03-29 23:36:25 -07:00
idataobject.go [windows] Drag-n-drop support 2023-10-21 11:21:10 +11:00
idispatch.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
idroptarget.go [V3] Drag-n-Drop Zones and improvements (#4318) 2025-08-04 20:40:19 +10:00
image.go [v3] completing missing build tags (#2884) 2023-09-04 22:43:28 +10:00
istream.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
kernel32.go [windows] Fix dialog icon 2023-10-09 17:34:56 +11:00
menubar.go Fix build 2025-07-25 07:31:29 +10:00
ole32.go extract taskbar 2025-04-26 18:48:27 -07:00
oleaut32.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
popupmenu.go Update systray-custom to show keep-alive after window kill 2024-12-23 20:55:29 +11:00
screen.go Fix screens infinite loop when retrieving monitor name 2025-01-12 20:38:49 +11:00
shcore.go [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
shell32.go [windows] Drag-n-drop support 2023-10-21 11:21:10 +11:00
shlwapi.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
taskbar.go extract taskbar 2025-04-26 18:48:27 -07:00
theme.go [V3] feat: add Windows getAccentColor implementation (#4427) 2025-07-25 21:46:05 +10:00
timer.go Fix build 2025-07-25 07:49:13 +10:00
toolbar.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
typedef.go feat: Add full dark mode support for Windows menus 2025-07-25 06:31:46 +10:00
user32.go feat: Add Content Protection for Windows and macOS (#4485) 2025-08-09 17:12:39 +10:00
utils.go More syscall fixes 2024-08-29 06:49:17 +10:00
vars.go [v3 windows] Moved w32 from internal to pkg so it may be used by applications 2023-05-30 16:31:49 +08:00
wda.go feat: Add Content Protection for Windows and macOS (#4485) 2025-08-09 17:12:39 +10:00
window.go Add systray.SetTooltip 2025-02-08 14:01:22 +11:00