ResUtilStopService

The ResUtilStopService utility function stops a service.

DWORD WINAPI ResUtilStopService(
  HANDLE ServiceHandle  
);
 

Parameters

ServiceHandle
[in] Handle of the service to stop.

Return Values

ERROR_SUCCESS
The service was successfully stopped.
ERROR_TIMEOUT
Service did not stop after a reasonable number of retries.

If the operation was unsuccessful, ResUtilStopService can also return a Win32® error value.

Notes to Callers

ResUtilStopService closes the handle specified in ServiceHandle when it stops the service.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.