ResUtilStopResourceService

The ResUtilStopResourceService utility function stops a service.

DWORD WINAPI ResUtilStopResourceService(
  LPCTSTR ServiceName  
);
 

Parameters

ServiceName
[in] Name 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, ResUtilStopResourceService can also return a Win32® error value.

QuickInfo

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