mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-17 04:31:30 +03:00
fix, win privacy mode, broker process
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -59,6 +59,12 @@ struct WindowHandlers {
|
||||
|
||||
impl Drop for WindowHandlers {
|
||||
fn drop(&mut self) {
|
||||
self.reset();
|
||||
}
|
||||
}
|
||||
|
||||
impl WindowHandlers {
|
||||
fn reset(&mut self) {
|
||||
unsafe {
|
||||
if self.hthread != 0 {
|
||||
CloseHandle(self.hthread as _);
|
||||
@@ -257,6 +263,10 @@ pub fn start() -> ResultType<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn stop() {
|
||||
WND_HANDLERS.lock().unwrap().reset();
|
||||
}
|
||||
|
||||
unsafe fn inject_dll<'a>(hproc: HANDLE, hthread: HANDLE, dll_file: &'a str) -> ResultType<()> {
|
||||
let dll_file_utf16: Vec<u16> = dll_file.encode_utf16().chain(Some(0).into_iter()).collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user