mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 13:51:27 +03:00
Privacy mode, msgbox, add details
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1269,9 +1269,15 @@ pub fn toggle_blank_screen(v: bool) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn block_input(v: bool) -> bool {
|
||||
pub fn block_input(v: bool) -> (bool, String) {
|
||||
let v = if v { TRUE } else { FALSE };
|
||||
unsafe { BlockInput(v) == TRUE }
|
||||
unsafe {
|
||||
if BlockInput(v) == TRUE {
|
||||
(true, "".to_owned())
|
||||
} else {
|
||||
(false, format!("Error code: {}", GetLastError()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn add_recent_document(path: &str) {
|
||||
|
||||
Reference in New Issue
Block a user