ClusterRegOpenKey 函数 (clusapi.h)
打开现有的 群集数据库 密钥。
语法
LONG ClusterRegOpenKey(
[in] HKEY hKey,
[in] LPCWSTR lpszSubKey,
[in] REGSAM samDesired,
[out] PHKEY phkResult
);
参数
[in] hKey
当前打开的密钥的句柄。 此参数不能为 NULL。
[in] lpszSubKey
指向以 null 结尾的 Unicode 字符串的指针,该字符串指定要创建或打开的子项的名称。 lpszSubKey 参数必须指向以下子项:
- 由 hKey 标识的密钥的子密钥。
- 不得以反斜杠字符 ( \ ) 开头。
- 不得为 NULL。
[in] samDesired
指定新密钥所需的安全访问的访问掩码。
[out] phkResult
指向打开或创建的键的句柄的指针。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS。
如果操作失败,函数将返回 系统错误代码。
注解
调用方应调用 ClusterRegCloseKey 以关闭 ClusterRegOpenKey 打开的密钥句柄。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2008 企业版、Windows Server 2008 Datacenter |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |