Skip to content

Latest commit

 

History

History
124 lines (87 loc) · 4.37 KB

nf-clusapi-createclusterresource.md

File metadata and controls

124 lines (87 loc) · 4.37 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:clusapi.CreateClusterResource
CreateClusterResource function (clusapi.h)
Creates a resource in a cluster.
CLUSTER_RESOURCE_DEFAULT_MONITOR
CLUSTER_RESOURCE_SEPARATE_MONITOR
CreateClusterResource
CreateClusterResource function [Failover Cluster]
PCLUSAPI_CREATE_CLUSTER_RESOURCE
PCLUSAPI_CREATE_CLUSTER_RESOURCE function [Failover Cluster]
_wolf_createclusterresource
clusapi/CreateClusterResource
clusapi/PCLUSAPI_CREATE_CLUSTER_RESOURCE
mscs.createclusterresource
mscs\createclusterresource.htm
MsCS
c9fe8fa8-57d7-4866-8113-694dc44dae22
12/05/2018
CLUSTER_RESOURCE_DEFAULT_MONITOR, CLUSTER_RESOURCE_SEPARATE_MONITOR, CreateClusterResource, CreateClusterResource function [Failover Cluster], PCLUSAPI_CREATE_CLUSTER_RESOURCE, PCLUSAPI_CREATE_CLUSTER_RESOURCE function [Failover Cluster], _wolf_createclusterresource, clusapi/CreateClusterResource, clusapi/PCLUSAPI_CREATE_CLUSTER_RESOURCE, mscs.createclusterresource
clusapi.h
Windows
None supported
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
ClusAPI.lib
ClusAPI.dll
Windows
19H1
CreateClusterResource
clusapi/CreateClusterResource
c++
APIRef
kbSyntax
DllExport
ClusAPI.dll
Ext-MS-Win-Cluster-ClusAPI-l1-1-0.dll
Ext-MS-Win-Cluster-ClusAPI-l1-1-1.dll
Ext-MS-Win-Cluster-ClusAPI-l1-1-2.dll
ext-ms-win-cluster-clusapi-l1-1-3.dll
CreateClusterResource

CreateClusterResource function

-description

Creates a resource in a cluster. The PCLUSAPI_CREATE_CLUSTER_RESOURCE type defines a pointer to this function.

-parameters

-param hGroup [in]

Handle to the group that should receive the resource.

-param lpszResourceName [in]

Pointer to a null-terminated Unicode string containing the name of the new resource. The specified name must be unique within the cluster.

-param lpszResourceType [in]

Pointer to the type of new resource. The specified type must be installed in the cluster.

-param dwFlags [in]

Bitmask describing how the resource should be added to the cluster. The dwFlags parameter can be set to one of the following values enumerated from the CLUSTER_RESOURCE_CREATE_FLAGS enumeration.

CLUSTER_RESOURCE_DEFAULT_MONITOR (0)

The Cluster service determines the Resource Monitor to which the new resource will be assigned.

CLUSTER_RESOURCE_SEPARATE_MONITOR (1)

Causes the Cluster service to create a separate Resource Monitor dedicated exclusively to the new resource.

-returns

If the operation succeeds, the function returns a resource handle.

If the operation fails, the function returns NULL. For more information about the error, call GetLastError.

-remarks

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

-see-also

CLUSTER_RESOURCE_CREATE_FLAGS

Cluster Resource Management Functions

DeleteClusterResource

OpenClusterGroup