mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 14:21:28 +03:00
check if WDA_EXCLUDEFROMCAPTURE is supported
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
pub use super::win_topmost_window::PrivacyModeImpl;
|
||||
|
||||
pub(super) const PRIVACY_MODE_IMPL: &str = "privacy_mode_impl_exclude_from_capture";
|
||||
|
||||
pub(super) fn is_supported() -> bool {
|
||||
// https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity
|
||||
// https://en.wikipedia.org/wiki/Windows_10_version_history
|
||||
crate::platform::windows::is_windows_version_or_greater(10, 0, 19041, 0, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user