语法
HKEY GetClusterNetInterfaceKey(
[in] HNETINTERFACE hNetInterface,
[in] REGSAM samDesired
);
参数
[in] hNetInterface
网络接口的句柄。
[in] samDesired
描述密钥所需的安全访问的访问掩码。
返回值
如果操作成功,函数将返回网络接口的注册表项句柄。
如果操作失败,函数将返回 NULL。 有关错误的详细信息,请调用 GetLastError。
注解
GetClusterNetInterfaceKey 函数返回一个表示 hNetInterface 标识的网络接口的子树根的群集数据库密钥的句柄。 调用方应调用 ClusterRegCloseKey 以关闭 GetClusterNetInterfaceKey 检索到的密钥句柄。
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 | 无受支持的版本 |
| 最低受支持的服务器 | Windows Server 2008 企业版、Windows Server 2008 Datacenter |
| 目标平台 | Windows |
| 标头 | clusapi.h |
| Library | ClusAPI.lib |
| DLL | ClusAPI.dll |