Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeleteClusterResourceType function

Removes a resource type from a cluster. The PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE type defines a pointer to this function.

Syntax


DWORD WINAPI DeleteClusterResourceType(
  _In_ HCLUSTER hCluster,
  _In_ LPCWSTR  lpszResourceTypeName
);

typedef DWORD (WINAPI *PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE)(
    _In_ HCLUSTER hCluster,
    _In_ 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 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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

CreateClusterResourceType

 

 

Show: