mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-01 01:21:06 +03:00
remove useless is_rdp_service_open
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user