RemoveClusterResourceNode function (clusapi.h)

Removes a node from the list of nodes that can host a resource. The PCLUSAPI_REMOVE_CLUSTER_RESOURCE_NODE type defines a pointer to this function.

Syntax

DWORD RemoveClusterResourceNode(
  [in] HRESOURCE hResource,
  [in] HNODE     hNode
);

Parameters

[in] hResource

Handle to the target resource.

[in] hNode

Handle to the node that should be removed from the list of potential host nodes belonging to the resource identified by hResource.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Remarks

Do not call RemoveClusterResourceNode from a resource DLL. For more information, see Function Calls to Avoid in Resource DLLs.

Do not pass LPC and RPC handles to the same function call. Otherwise, the call will raise an RPC exception and can have additional destructive effects. For information on how LPC and RPC handles are created, see Using Object Handles and OpenCluster.

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

See also

AddClusterResourceNode

OpenCluster

OpenClusterNode

OpenClusterResource