ResUtilGetClusterRoleState 函数 (resapi.h)
确定是否已将特定角色分配给群集。
语法
CLUSTER_ROLE_STATE ResUtilGetClusterRoleState(
[in] HCLUSTER hCluster,
[in] CLUSTER_ROLE eClusterRole
);
参数
[in] hCluster
所查询群集的句柄。
[in] eClusterRole
查询群集的角色。 此参数的可能值是 CLUSTER_ROLE 枚举中的枚举器。 以下值有效。
ClusterRoleDHCP (0)
此枚举器表示 DHCP 服务群集角色。
ClusterRoleDTC (1)
此枚举器表示分布式事务处理协调器群集角色。
ClusterRoleFileServer (2)
此枚举器表示文件共享群集角色。
ClusterRoleGenericApplication (3)
此枚举器表示泛型应用程序群集角色。
ClusterRoleGenericScript (4)
此枚举器表示泛型脚本群集角色。
ClusterRoleGenericService (5)
此枚举器表示泛型服务群集角色。
ClusterRoleISCSINameServer (6)
此枚举器表示 Microsoft iSNS 群集角色。
ClusterRoleMSMQ (7)
此枚举器表示 Microsoft 消息队列群集角色。
ClusterRoleNFS (8)
此枚举器表示 NFS 共享群集角色。
ClusterRolePrintServer (9)
此枚举器表示打印后台处理程序群集角色。
ClusterRoleStandAloneNamespaceServer (10)
此枚举器表示专用的文件共享群集角色。
ClusterRoleVolumeShadowCopyServiceTask (11)
此枚举器表示卷影复制服务任务群集角色。
ClusterRoleWINS (12)
此枚举器表示 WINS 服务群集角色。
返回值
此函数的可能返回值是 CLUSTER_ROLE_STATE 枚举中的枚举器。 以下值有效。
返回代码/值 | 说明 |
---|---|
|
目前还不清楚角色是否为群集。 如果返回此值,则发生错误。 有关详细信息,请调用 GetLastError。 |
|
角色是群集角色。 |
|
角色未群集化。 |
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2008 Datacenter、Windows Server 2008 企业版 |
目标平台 | Windows |
标头 | resapi.h |
Library | ResUtils.lib;Windows Server 2008 R2 和 Windows Server 2008 上的 ResApi.lib |
DLL | ResUtils.dll |