Service Utility Functions

The service utility functions manage services for resource DLLs.

In this section

ResUtilFreeEnvironment

Destroys the environment variable block created with ResUtilGetEnvironmentWithNetName. The PRESUTIL_FREE_ENVIRONMENT type defines a pointer to this function.

ResUtilGetEnvironmentWithNetName

Adjusts environment data for a resource so that the resource uses a cluster network name to identify its location. The resource must be dependent on a Network Name resource. The PRESUTIL_GET_ENVIRONMENT_WITH_NET_NAME type defines a pointer to this function.

ResUtilRemoveResourceServiceEnvironment

Removes the environment data from a service. This function must be called from a resource DLL. The PRESUTIL_REMOVE_RESOURCE_SERVICE_ENVIRONMENT type defines a pointer to this function.

ResUtilSetResourceServiceEnvironment

Adjusts the environment data for a service so that the service uses a cluster network name to identify its location. This function must be called from a resource DLL. The PRESUTIL_SET_RESOURCE_SERVICE_ENVIRONMENT type defines a pointer to this function.

ResUtilSetResourceServiceStartParameters

Adjusts the start parameters of a specified service so that it will operate correctly as a cluster resource. It must be called from a resource DLL. The PRESUTIL_SET_RESOURCE_SERVICE_START_PARAMETERS type defines a pointer to this function.

ResUtilSetResourceServiceStartParametersEx

Adjusts the start parameters of a specified service so that it operates correctly as a cluster resource. It must be called from a resource DLL. The PRESUTIL_SET_RESOURCE_SERVICE_START_PARAMETERS_EX type defines a pointer to this function.

ResUtilStartResourceService

Starts a service. The PRESUTIL_START_RESOURCE_SERVICE type defines a pointer to this function.

ResUtilStopResourceService

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

ResUtilStopService

Stops a service identified by a handle. The PRESUTIL_STOP_SERVICE type defines a pointer to this function.

ResUtilTerminateServiceProcessFromResDll

Attempts to terminate the process of a service being managed as a cluster resource by a resource DLL. The PRESUTIL_TERMINATE_SERVICE_PROCESS_FROM_RES_DLL type defines a pointer to this function.

ResUtilVerifyResourceService

Verifies that a named service is starting or currently running. The PRESUTIL_VERIFY_RESOURCE_SERVICE type defines a pointer to this function.

ResUtilVerifyService

Checks if a service identified by a handle is starting or currently running. The PRESUTIL_VERIFY_SERVICE type defines a pointer to this function.

Related topics

Failover Cluster Utility Functions

 

 

Show: