Export (0) Print
Expand All

ResUtilStopResourceService function

Stops a named service. The PRESUTIL_STOP_RESOURCE_SERVICE type defines a pointer to this function.

Syntax


DWORD WINAPI ResUtilStopResourceService(
  _In_  LPCWSTR pszServiceName
);

typedef DWORD (WINAPI *PRESUTIL_STOP_RESOURCE_SERVICE)(
    _In_  LPCWSTR pszServiceName
);

Parameters

pszServiceName [in]

Null-terminated Unicode string containing the name of the service to stop.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code. The following is a possible error code.

Return codeDescription
ERROR_TIMEOUT

Service did not stop after a reasonable number of retries.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

ResUtilStartResourceService

 

 

Show:
© 2014 Microsoft