mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
12 lines
477 B
Rust
12 lines
477 B
Rust
use hbb_common::platform::windows::is_windows_version_or_greater;
|
|
|
|
pub use super::win_topmost_window::PrivacyModeImpl;
|
|
|
|
pub(super) const PRIVACY_MODE_IMPL: &str = super::PRIVACY_MODE_IMPL_WIN_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
|
|
is_windows_version_or_greater(10, 0, 19041, 0, 0)
|
|
}
|