2023-11-20 21:44:25 +08:00
|
|
|
use hbb_common::platform::windows::is_windows_version_or_greater;
|
|
|
|
|
2023-11-19 15:26:02 +08:00
|
|
|
pub use super::win_topmost_window::PrivacyModeImpl;
|
|
|
|
|
|
|
|
pub(super) const PRIVACY_MODE_IMPL: &str = "privacy_mode_impl_exclude_from_capture";
|
2023-11-19 19:23:10 +08:00
|
|
|
|
|
|
|
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
|
2023-11-20 21:44:25 +08:00
|
|
|
is_windows_version_or_greater(10, 0, 19041, 0, 0)
|
2023-11-19 19:23:10 +08:00
|
|
|
}
|