win, clipboard wait timeout, debug

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-06-29 15:50:15 +08:00
parent 47fa90741f
commit aaca56c1f8
37 changed files with 42 additions and 2 deletions

View File

@ -1497,9 +1497,13 @@ UINT wait_response_event(wfClipboard *clipboard, HANDLE event, void **data)
msg.details = NULL; msg.details = NULL;
clipboard->context->NotifyClipboardMsg(&msg); clipboard->context->NotifyClipboardMsg(&msg);
rc = ERROR_INTERNAL_ERROR; rc = ERROR_INTERNAL_ERROR;
}
if ((*data) != NULL) if (!ResetEvent(event))
{
// NOTE: critical error here, crash may be better
}
}
else if ((*data) != NULL)
{ {
if (!ResetEvent(event)) if (!ResetEvent(event))
{ {

View File

@ -1102,6 +1102,7 @@ fn msgbox_clipboard_(channel: &str, r#type: u32, msg: &str, details: &str) -> u3
); );
let text = format!("{} {}", msg, details); let text = format!("{} {}", msg, details);
if let Ok(event) = serde_json::ser::to_string(&HashMap::from([ if let Ok(event) = serde_json::ser::to_string(&HashMap::from([
("name", "msgbox"),
("type", &msgtype as &str), ("type", &msgtype as &str),
("title", "clipboard"), ("title", "clipboard"),
("text", &text), ("text", &text),

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "折叠工具栏"), ("Collapse toolbar", "折叠工具栏"),
("Accept and Elevate", "接受并提权"), ("Accept and Elevate", "接受并提权"),
("accept_and_elevate_btn_tooltip", "接受连接并提升 UAC 权限"), ("accept_and_elevate_btn_tooltip", "接受连接并提升 UAC 权限"),
("clipboard_wait_response_timeout_tip", "等待拷贝响应超时"),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Symbolleiste einklappen"), ("Collapse toolbar", "Symbolleiste einklappen"),
("Accept and Elevate", "Akzeptieren und Rechte erhöhen"), ("Accept and Elevate", "Akzeptieren und Rechte erhöhen"),
("accept_and_elevate_btn_tooltip", "Akzeptieren Sie die Verbindung und erhöhen Sie die UAC-Berechtigungen."), ("accept_and_elevate_btn_tooltip", "Akzeptieren Sie die Verbindung und erhöhen Sie die UAC-Berechtigungen."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -70,5 +70,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("resolution_fit_local_tip", "Fit local resolution"), ("resolution_fit_local_tip", "Fit local resolution"),
("resolution_custom_tip", "Custom resolution"), ("resolution_custom_tip", "Custom resolution"),
("accept_and_elevate_btn_tooltip", "Accept the connection and elevate UAC permissions."), ("accept_and_elevate_btn_tooltip", "Accept the connection and elevate UAC permissions."),
("clipboard_wait_response_timeout_tip", "Timed out waiting for copy response."),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Contraer barra de herramientas"), ("Collapse toolbar", "Contraer barra de herramientas"),
("Accept and Elevate", "Aceptar y Elevar"), ("Accept and Elevate", "Aceptar y Elevar"),
("accept_and_elevate_btn_tooltip", "Aceptar la conexión y elevar permisos UAC."), ("accept_and_elevate_btn_tooltip", "Aceptar la conexión y elevar permisos UAC."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "جمع کردن نوار ابزار"), ("Collapse toolbar", "جمع کردن نوار ابزار"),
("Accept and Elevate", "بپذیرید و افزایش دهید"), ("Accept and Elevate", "بپذیرید و افزایش دهید"),
("accept_and_elevate_btn_tooltip", "را افزایش دهید UAC اتصال را بپذیرید و مجوزهای."), ("accept_and_elevate_btn_tooltip", "را افزایش دهید UAC اتصال را بپذیرید و مجوزهای."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Comprimi barra strumenti"), ("Collapse toolbar", "Comprimi barra strumenti"),
("Accept and Elevate", "Accetta ed eleva"), ("Accept and Elevate", "Accetta ed eleva"),
("accept_and_elevate_btn_tooltip", "Accetta la connessione ed eleva le autorizzazioni UAC."), ("accept_and_elevate_btn_tooltip", "Accetta la connessione ed eleva le autorizzazioni UAC."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Werkbalk samenvouwen"), ("Collapse toolbar", "Werkbalk samenvouwen"),
("Accept and Elevate", "Accepteren en Verheffen"), ("Accept and Elevate", "Accepteren en Verheffen"),
("accept_and_elevate_btn_tooltip", "Accepteer de verbinding en verhoog de UAC-machtigingen."), ("accept_and_elevate_btn_tooltip", "Accepteer de verbinding en verhoog de UAC-machtigingen."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Zwiń pasek narzędzi"), ("Collapse toolbar", "Zwiń pasek narzędzi"),
("Accept and Elevate", "Akceptuj i Podnieś uprawnienia"), ("Accept and Elevate", "Akceptuj i Podnieś uprawnienia"),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Свернуть панель инструментов"), ("Collapse toolbar", "Свернуть панель инструментов"),
("Accept and Elevate", "Принять и повысить"), ("Accept and Elevate", "Принять и повысить"),
("accept_and_elevate_btn_tooltip", "Разрешить подключение и повысить права UAC."), ("accept_and_elevate_btn_tooltip", "Разрешить подключение и повысить права UAC."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", ""), ("Collapse toolbar", ""),
("Accept and Elevate", ""), ("Accept and Elevate", ""),
("accept_and_elevate_btn_tooltip", ""), ("accept_and_elevate_btn_tooltip", ""),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -511,5 +511,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Collapse toolbar", "Thu nhỏ thanh công cụ"), ("Collapse toolbar", "Thu nhỏ thanh công cụ"),
("Accept and Elevate", "Chấp nhận và Cấp Quyền"), ("Accept and Elevate", "Chấp nhận và Cấp Quyền"),
("accept_and_elevate_btn_tooltip", "Chấp nhận kết nối và cấp các quyền UAC."), ("accept_and_elevate_btn_tooltip", "Chấp nhận kết nối và cấp các quyền UAC."),
("clipboard_wait_response_timeout_tip", ""),
].iter().cloned().collect(); ].iter().cloned().collect();
} }