mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-22 12:41:14 +03:00
Fix/printer printable area (#12433)
* fix: printer, printable area Signed-off-by: fufesou <linlong1266@gmail.com> * refact: windows, sc config RustDesk --start= delayed-auto Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -49,6 +49,15 @@ bool MyCreateServiceW(LPCWSTR serviceName, LPCWSTR displayName, LPCWSTR binaryPa
|
||||
WcaLog(LOGMSG_STANDARD, "Service installed successfully\n");
|
||||
}
|
||||
|
||||
SERVICE_DELAYED_AUTO_START_INFO delayedStart = { TRUE };
|
||||
if (!ChangeServiceConfig2W(
|
||||
schService,
|
||||
SERVICE_CONFIG_DELAYED_AUTO_START_INFO,
|
||||
&delayedStart
|
||||
)) {
|
||||
WcaLog(LOGMSG_STANDARD, "Failed to configure delayed auto-start for service: %ls, Error: %d\n", serviceName, GetLastError());
|
||||
}
|
||||
|
||||
CloseServiceHandle(schService);
|
||||
CloseServiceHandle(schSCManager);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user