[host] Windows: run with HIGH priority if started by the service

This commit is contained in:
Geoffrey McRae 2020-08-11 17:37:40 +10:00
parent 045932ce77
commit 0cf1e27709

View file

@ -266,7 +266,7 @@ void Launch()
if (!enablePriv(SE_INCREASE_QUOTA_NAME)) if (!enablePriv(SE_INCREASE_QUOTA_NAME))
goto fail_token; goto fail_token;
DWORD flags = CREATE_NEW_CONSOLE; DWORD flags = CREATE_NEW_CONSOLE | HIGH_PRIORITY_CLASS;
if (!pEnvironment) if (!pEnvironment)
flags |= CREATE_UNICODE_ENVIRONMENT; flags |= CREATE_UNICODE_ENVIRONMENT;