Resource Utility Functions

The resource utility functions allow applications and resource DLLs to manage multiple cluster resources.

In this section

ResUtilEnumResources

Enumerates all of the resources in the local cluster and initiates a user-defined operation for each resource. The PRESUTIL_ENUM_RESOURCES type defines a pointer to this function.

ResUtilEnumResourcesEx

Enumerates all of the resources in a specified cluster and initiates a user-defined operation for each resource. The PRESUTIL_ENUM_RESOURCES_EX type defines a pointer to this function.

ResUtilEnumResourcesEx2

Enumerates all of the resources in a specified cluster and initiates a user-defined operation for each resource. The PRESUTIL_ENUM_RESOURCES_EX2 type defines a pointer to this function.

ResUtilFindDependentDiskResourceDriveLetter

Retrieves the drive letter associated with a Physical Disk dependency of a resource. The PRESUTIL_FIND_DEPENDENT_DISK_RESOURCE_DRIVE_LETTER type defines a pointer to this function.

ResUtilFindFileTimeProperty

TBD. The PRESUTIL_FIND_FILETIME_PROPERTY type defines a pointer to this function.

ResUtilGetClusterRoleState

Determines whether or not a specific role has been assigned to a cluster.

ResUtilGetCoreClusterResources

Returns handles to the core Network Name, IP Address and quorum resources. The PRESUTIL_GET_CORE_CLUSTER_RESOURCES type defines a pointer to this function.

ResUtilGetCoreClusterResourcesEx

Returns handles to the core, Network Name, IP Address, and quorum resources. The PRESUTIL_GET_CORE_CLUSTER_RESOURCES_EX type defines a pointer to this function.

ResUtilGetFileTimeProperty

TBD. The PRESUTIL_GET_FILETIME_PROPERTY type defines a pointer to this function.

ResUtilGetLongProperty

TBD. The PRESUTIL_GET_LONG_PROPERTY type defines a pointer to this function.

ResUtilGetQwordValue

TBD

ResUtilGetResourceDependency

Enumerates the dependencies of a specified resource and returns a handle to a dependency of a specified type. The PRESUTIL_GET_RESOURCE_DEPENDENCY type defines a pointer to this function.

ResUtilGetResourceDependencyByClass

Enumerates the dependencies of a specified resource in a specified cluster and returns a handle to a dependency that matches a specified resource class. The PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS type defines a pointer to this function.

ResUtilGetResourceDependencyByClassEx

Enumerates the dependencies of a specified resource in a specified cluster and returns a handle to a dependency that matches a specified resource class. The PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS_EX type defines a pointer to this function.

ResUtilGetResourceDependencyByName

Enumerates the dependencies of a specified resource in a specified cluster and returns a handle to a dependency of a specified type. The PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME type defines a pointer to this function.

ResUtilGetResourceDependencyByNameEx

Enumerates the dependencies of a specified resource in a specified cluster and returns a handle to a dependency of a specified type. The PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME_EX type defines a pointer to this function.

ResUtilGetResourceDependencyEx

Enumerates the dependencies of a specified resource and returns a handle to a dependency of a specified type. The PRESUTIL_GET_RESOURCE_DEPENDENCY_EX type defines a pointer to this function.

ResUtilGetResourceDependentIPAddressProps

Retrieves the private properties of the first IP Address dependency found for a specified resource. The PRESUTIL_GET_RESOURCE_DEPENDENTIP_ADDRESS_PROPS type defines a pointer to this function.

ResUtilGetResourceName

Returns the name of a resource. The PRESUTIL_GET_RESOURCE_NAME type defines a pointer to this function.

ResUtilGetResourceNameDependency

Enumerates the dependencies of a specified resource in the local cluster and returns a handle to a dependency of a specified resource type. The PRESUTIL_GET_RESOURCE_NAME_DEPENDENCY type defines a pointer to this function.

ResUtilGetResourceNameDependencyEx

Enumerates the dependencies of a specified resource in the local cluster and returns a handle to a dependency of a specified resource type. The PRESUTIL_GET_RESOURCE_NAME_DEPENDENCY_EX type defines a pointer to this function.

ResUtilIsResourceClassEqual

Tests whether the resource class of a specified resource is equal to a specified resource class. The PRESUTIL_IS_RESOURCE_CLASS_EQUAL type defines a pointer to this function.

ResUtilLeftPaxosIsLessThanRight

Indicates whether a specified Paxos tag contains older cluster configuration information than another specified Paxos tag.

ResUtilPaxosComparer

Compares two Paxos tags and indicates whether they have the same values.

ResUtilResourcesEqual

Tests whether two resource handles represent the same resource. The PRESUTIL_RESOURCES_EQUAL type defines a pointer to this function.

ResUtilResourceTypesEqual

Tests whether a resource type matches the resource type name of a specified resource. The PRESUTIL_RESOURCE_TYPES_EQUAL type defines a pointer to this function.

ResUtilSetQwordValue

TBD. The PRESUTIL_SET_QWORD_VALUE type defines a pointer to this function.

Failover Cluster Utility Functions