OpenClusterResource function

Opens a resource and returns a handle to it. The PCLUSAPI_OPEN_CLUSTER_RESOURCE type defines a pointer to this function.

Syntax

HRESOURCE OpenClusterResource(
  HCLUSTER hCluster,
  LPCWSTR  lpszResourceName
);

Parameters

hCluster

Handle to a cluster.

lpszResourceName

Pointer to a null-terminated Unicode string containing the name of the resource to be opened.

Resource names are not case sensitive. A resource name must be unique within the cluster. The name is set when the resource is created and can be changed using the SetClusterResourceName function.

Return Value

If the operation was successful, OpenClusterResource returns a handle to the opened resource.

Return code Description
NULL
The operation was not successful. For information about the error, call the function GetLastError.

Requirements

   
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

CloseClusterResource

Failover Cluster Resource Management Functions

OpenClusterResourceEx