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 the name of the resource type to be removed.

Return Values

ERROR_SUCCESS
The operation was successful.

If the operation was unsuccessful, 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 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.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.