prompt foreground window elevation

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-28 20:48:14 +08:00
parent ae8d97eb72
commit 02aedd234c
30 changed files with 131 additions and 30 deletions

View File

@@ -985,6 +985,15 @@ impl<T: InvokeUiSession> Remote<T> {
.msgbox("custom-uac-nocancel", "Warning", "uac_warning");
}
}
Some(misc::Union::ForegroundWindowElevated(elevated)) => {
if elevated {
self.handler.msgbox(
"custom-elevated-foreground-nocancel",
"Warning",
"elevated_foreground_window_warning",
);
}
}
_ => {}
},
Some(message::Union::TestDelay(t)) => {