DeleteClusterResourceType function (clusapi.h)
Removes a resource type from a cluster. The PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE type defines a pointer to this function.
Syntax
DWORD DeleteClusterResourceType(
[in] HCLUSTER hCluster,
[in] LPCWSTR lpszResourceTypeName
);
Parameters
[in] hCluster
Handle to the cluster containing the resource type to be removed.
[in] lpszResourceTypeName
Pointer to a null-terminated Unicode string containing the name of the resource type to be removed.
Return value
If the operation succeeds, the function returns ERROR_SUCCESS.
If the operation fails, the function returns a system error code.
Remarks
The DeleteClusterResourceType function only removes the resource type with the name pointed to by lpszResourceTypeName from the cluster database and then unregisters it with the Cluster service. The caller must delete the resource DLL for the resource type from each node in the cluster.
The caller must also delete any resources of this type before calling DeleteClusterResourceType to delete the type. If any resources of the specified type still exist when DeleteClusterResourceType is called, the function fails.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Enterprise, Windows Server 2008 Datacenter |
Target Platform | Windows |
Header | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |