SetClusterGroupName 函数 (clusapi.h)
设置 组的名称。 PCLUSAPI_SET_CLUSTER_GROUP_NAME类型定义指向此函数的指针。
语法
DWORD SetClusterGroupName(
[in] HGROUP hGroup,
[in] LPCWSTR lpszGroupName
);
参数
[in] hGroup
要命名的组的句柄。
[in] lpszGroupName
指向 由 hGroup 标识的组的新名称的指针。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS。
如果操作失败,函数将返回 系统错误代码。
注解
SetClusterGroupName 更改由 hGroup 标识的组的 Name 公共属性。 这是可以更改 Name(只读属性)的唯一方法。
不要从资源 DLL 调用 SetClusterGroupName 。 有关详细信息,请参阅 资源 DLL 中对避免的函数调用。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2008 企业版、Windows Server 2008 Datacenter |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |