remove useless is_rdp_service_open

This commit is contained in:
rustdesk
2024-02-25 20:10:36 +08:00
parent b511a52e09
commit f1373234dd
2 changed files with 0 additions and 27 deletions

View File

@@ -440,7 +440,6 @@ pub fn start_os_service() {
const SERVICE_TYPE: ServiceType = ServiceType::OWN_PROCESS;
extern "C" {
fn has_rdp_service() -> BOOL;
fn get_current_session(rdp: BOOL) -> DWORD;
fn LaunchProcessWin(cmd: *const u16, session_id: DWORD, as_user: BOOL) -> HANDLE;
fn GetSessionUserTokenWin(lphUserToken: LPHANDLE, dwSessionId: DWORD, as_user: BOOL) -> BOOL;
@@ -1478,10 +1477,6 @@ pub fn bootstrap() {
}
}
pub fn is_rdp_service_open() -> bool {
unsafe { has_rdp_service() == TRUE }
}
pub fn create_shortcut(id: &str) -> ResultType<()> {
let exe = std::env::current_exe()?.to_str().unwrap_or("").to_owned();
let shortcut = write_cmds(