resUtilSetDwordValue 函数 (resapi.h)
设置 群集数据库中的数值。 PRESUTIL_SET_DWORD_VALUE类型定义指向此函数的指针。
语法
DWORD ResUtilSetDwordValue(
[in] HKEY hkeyClusterKey,
[in] LPCWSTR pszValueName,
[in] DWORD dwNewValue,
[in, out] LPDWORD pdwOutValue
);
参数
[in] hkeyClusterKey
用于标识群集数据库中数值位置的键。
[in] pszValueName
一个以 null 结尾的 Unicode 字符串,其中包含要更新的值的名称。
[in] dwNewValue
新的 DWORD 值。
[in, out] pdwOutValue
可选。 指向应复制更新值的位置的指针。
返回值
如果操作成功,函数将返回 ERROR_SUCCESS。
如果操作失败,该函数将返回 系统错误代码。
注解
ResUtilSetDwordValue 实用工具函数通过调用群集 API 函数 ClusterRegSetValue 更新群集数据库。
不要从以下资源 DLL 入口点函数调用 ResUtilSetDwordValue :
可以从任何其他资源 DLL 入口点函数或工作线程安全地调用 ResUtilSetDwordValue。 有关详细信息,请参阅 在资源 DLL 中对避免的函数调用。要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2008 Enterprise、Windows Server 2008 Datacenter |
目标平台 | Windows |
标头 | resapi.h |
Library | ResUtils.lib |
DLL | ResUtils.dll |