Fix service elevation prompt regression from commit
@@ -1656,6 +1656,9 @@ VOID PhMwpOnCommand(
PhGetSelectedServiceItems(&serviceItems, &numberOfServiceItems);
PhReferenceObjects(serviceItems, numberOfServiceItems);
+ if (numberOfServiceItems == 1) // phsvc elevation (dmex)
+ PhUiStartService(WindowHandle, serviceItems[0]);
+ else
PhUiStartServices(WindowHandle, serviceItems, numberOfServiceItems);
PhDereferenceObjects(serviceItems, numberOfServiceItems);
@@ -1670,6 +1673,9 @@ VOID PhMwpOnCommand(
PhGetSelectedServiceItems(&serviceItems, &numberOfServiceItems);
PhReferenceObjects(serviceItems, numberOfServiceItems);
+ if (numberOfServiceItems == 1) // phsvc elevation (dmex)
+ PhUiContinueService(WindowHandle, serviceItems[0]);
+ else
PhUiContinueServices(WindowHandle, serviceItems, numberOfServiceItems);
PhDereferenceObjects(serviceItems, numberOfServiceItems);
@@ -1684,6 +1690,9 @@ VOID PhMwpOnCommand(
PhGetSelectedServiceItems(&serviceItems, &numberOfServiceItems);
PhReferenceObjects(serviceItems, numberOfServiceItems);
+ if (numberOfServiceItems == 1) // phsvc elevation (dmex)
+ PhUiPauseService(WindowHandle, serviceItems[0]);
+ else
PhUiPauseServices(WindowHandle, serviceItems, numberOfServiceItems);
PhDereferenceObjects(serviceItems, numberOfServiceItems);
@@ -1698,6 +1707,9 @@ VOID PhMwpOnCommand(
PhGetSelectedServiceItems(&serviceItems, &numberOfServiceItems);
PhReferenceObjects(serviceItems, numberOfServiceItems);
+ if (numberOfServiceItems == 1) // phsvc elevation (dmex)
+ PhUiStopService(WindowHandle, serviceItems[0]);
+ else
PhUiStopServices(WindowHandle, serviceItems, numberOfServiceItems);
PhDereferenceObjects(serviceItems, numberOfServiceItems);
