Platform SDK: Windows Clustering

DeleteClusterResourceType

The DeleteClusterResourceType function removes a resource type from a cluster.

DWORD WINAPI DeleteClusterResourceType(
  HCLUSTER hCluster,            
  LPCWSTR lpszResourceTypeName  
);

Parameters

hCluster
[in] Handle to the cluster containing the resource type to be removed.
lpszResourceTypeName
[in] Pointer to a null-terminated Unicode string containing the name of the resource type to be removed.

Return Values

Value Meaning
ERROR_SUCCESS The operation was successful.

If the operation was not successful, DeleteClusterResourceType returns a Win32 error value.

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

  Version: Requires Windows NT Server Enterprise Edition 4.0 SP3; Windows NT Server Enterprise Edition 4.0 SP4; Windows 2000 Advanced Server; Windows 2000 Data Center.
  Header: Declared in Clusapi.h.
  Library: Use Clusapi.lib.

See Also

CreateClusterResourceType