OnlineClusterGroupEx 函数 (clusapi.h)
使 组 联机。
语法
DWORD OnlineClusterGroupEx(
[in] HGROUP hGroup,
[in, optional] HNODE hDestinationNode,
[in] DWORD dwOnlineFlags,
[in, optional] PBYTE lpInBuffer,
[in] DWORD cbInBufferSize
);
参数
[in] hGroup
要联机的组的句柄。
[in, optional] hDestinationNode
要托管组的 节点 的句柄。
[in] dwOnlineFlags
一个标志,指定要联机的资源的设置。
CLUSAPI_GROUP_ONLINE_IGNORE_RESOURCE_STATUS (0x00000001)
服务器将忽略资源的锁定模式。
CLUSAPI_GROUP_ONLINE_SYNCHRONOUS (0x00000002)
使用同步操作使组联机。
Windows Server 2012 R2 和 Windows Server 2012: 此值已添加到 Windows Server 2016 中。
CLUSAPI_GROUP_ONLINE_BEST_POSSIBLE_NODE (0x00000004)
让群集服务确定在组联机时将托管该组的节点。
Windows Server 2012 R2 和 Windows Server 2012: 此值已添加到 Windows Server 2016 中。
0
服务器不会忽略资源的锁定模式。
[in, optional] lpInBuffer
指向接收操作指令的输入缓冲区的指针。 lpInBuffer 参数的格式设置为属性列表。
[in] cbInBufferSize
lpInBuffer 参数的大小(以字节为单位)。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS。
如果操作失败,函数将返回 系统错误代码。 下面是可能的错误代码。
返回代码 | 说明 |
---|---|
|
合适的主机节点不可用。 |
|
操作正在进行中。 |
要求
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2012 |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |