Skip to content

Commit

Permalink
viogpusc: Run viogpu service as a noninteractive service
Browse files Browse the repository at this point in the history
Remove flag SERVICE_INTERACTIVE_PROCESS to run viogpu service
as a noninteractive service.

#718

Signed-off-by: Annie Li <[email protected]>
  • Loading branch information
annie-li authored and YanVugenfirer committed Aug 18, 2024
1 parent c87ea56 commit 54442f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viogpu/viogpusc/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ BOOL CService::SendStatusToSCM(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWOR

PrintMessage(L"%ws\n", __FUNCTIONW__);

serviceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS;
serviceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
serviceStatus.dwCurrentState = dwCurrentState;

if (dwCurrentState == SERVICE_START_PENDING) {
Expand Down
2 changes: 1 addition & 1 deletion viogpu/viogpusc/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ BOOL InstallService()
ServiceName,
DisplayName,
SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS,
SERVICE_WIN32_OWN_PROCESS,
SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL,
szBuffer,
Expand Down

0 comments on commit 54442f0

Please sign in to comment.