Platform SDK: Windows Clustering |
The DeleteClusterResourceType function removes a resource type from a cluster.
DWORD WINAPI DeleteClusterResourceType( HCLUSTER hCluster, LPCWSTR lpszResourceTypeName );
Value | Meaning |
---|---|
ERROR_SUCCESS | The operation was successful. |
If the operation was not successful, DeleteClusterResourceType returns a Win32 error value.
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.
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.