From 0cf1e277096743710ce10fca154ea35afeb623b3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 11 Aug 2020 17:37:40 +1000 Subject: [PATCH] [host] Windows: run with HIGH priority if started by the service --- host/platform/Windows/src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index a0f7d49f..a0d10beb 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -266,7 +266,7 @@ void Launch() if (!enablePriv(SE_INCREASE_QUOTA_NAME)) goto fail_token; - DWORD flags = CREATE_NEW_CONSOLE; + DWORD flags = CREATE_NEW_CONSOLE | HIGH_PRIORITY_CLASS; if (!pEnvironment) flags |= CREATE_UNICODE_ENVIRONMENT;