设置群集组的依赖项表达式。
语法
DWORD SetGroupDependencyExpression(
  [in] HGROUP  hGroup,
  [in] LPCWSTR lpszDependencyExpression
);
参数
[in] hGroup
要对其设置依赖项表达式的组的句柄。
[in] lpszDependencyExpression
要对组设置的依赖项表达式。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS。
如果操作失败,该函数将返回 系统错误代码。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | 无受支持的版本 | 
| 最低受支持的服务器 | Windows Server 2016 | 
| 目标平台 | Windows | 
| 标头 | clusapi.h | 
| Library | ClusAPI.lib | 
| DLL | ClusAPI.dll |