Skip to content

Commit

Permalink
Disable the process restart menu for service host processes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jun 26, 2021
1 parent cbc302e commit 9b18fe3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ProcessHacker/mwpgproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,15 @@ VOID PhMwpInitializeProcessMenu(
PhEnableEMenuItem(Menu, ID_PROCESS_SEARCHONLINE, TRUE);
}

// Disable the restart menu for service host processes. (dmex)
if (
Processes[0]->ServiceList &&
Processes[0]->ServiceList->Count != 0
)
{
PhEnableEMenuItem(Menu, ID_PROCESS_RESTART, FALSE);
}

if (
PhIsNullOrEmptyString(Processes[0]->FileName) ||
!PhDoesFileExists(Processes[0]->FileName)
Expand Down

0 comments on commit 9b18fe3

Please sign in to comment.