ClusterRegDeleteKey 函数 (clusapi.h)
删除 群集数据库 密钥。
语法
LONG ClusterRegDeleteKey(
[in] HKEY hKey,
[in] LPCWSTR lpszSubKey
);
参数
[in] hKey
当前打开的密钥的句柄。
[in] lpszSubKey
指向以 null 结尾的 Unicode 字符串的指针,该字符串指定要删除的密钥的名称。 lpszSubKey 指向的键不能有子项;ClusterRegDeleteKey 只能删除没有子项的密钥。 此参数不能为 NULL。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS ( 0) 。
如果操作失败,函数将返回 系统错误代码。
注解
ClusterRegDeleteKey 函数无法删除具有一个或多个子项的密钥。
不要从以下资源 DLL 入口点函数调用 ClusterRegDeleteKey :
可以从任何其他资源 DLL 入口点函数或工作线程安全地调用 ClusterRegDeleteKey。 有关详细信息,请参阅 资源 DLL 中对避免的函数调用。要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2008 企业版、Windows Server 2008 Datacenter |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |