use api rather than cmd to retrieve active user name to solve

non-English problem
This commit is contained in:
rustdesk
2021-04-09 09:58:50 +08:00
parent 0503a4d5b6
commit de4bb684af
3 changed files with 40 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#[cfg(windows)]
fn build_windows() {
cc::Build::new().file("src/windows.cc").compile("windows");
// println!("cargo:rustc-link-lib=WtsApi32");
println!("cargo:rustc-link-lib=WtsApi32");
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=windows.cc");
}