OpenClusterResource function (clusapi.h)
Opens a resource and returns a handle to it. The PCLUSAPI_OPEN_CLUSTER_RESOURCE type defines a pointer to this function.
Syntax
HRESOURCE OpenClusterResource(
[in] HCLUSTER hCluster,
[in] LPCWSTR lpszResourceName
);
Parameters
[in] hCluster
Handle to a cluster.
[in] 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 |
---|---|
|
The operation was not successful. For information about the error, call the function GetLastError. |
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 |