ClusterRegCloseBatchEx 函数 (clusapi.h)
执行或忽略 ClusterRegCreateBatch 函数创建的批处理。
语法
LONG ClusterRegCloseBatchEx(
[in] HREGBATCH hRegBatch,
[in] DWORD flags,
[out, optional] INT *failedCommandNumber
);
参数
[in] hRegBatch
ClusterRegCreateBatch 打开的群集注册表项的句柄。 ClusterRegCloseBatch 完成后,此句柄不再有效,并释放与之关联的内存。
[in] flags
[out, optional] failedCommandNumber
如果批处理的执行不成功,则失败的命令编号以 failedCommandNumber 参数的形式返回。 批处理中的第一个命令具有数字 0,第二个命令具有数字 1,依依。
返回值
函数返回以下 系统错误代码之一。
返回代码/值 | 说明 |
---|---|
|
操作成功。 |
|
句柄无效。 如果 hRegBatch 参数为 NULL,则返回此值。 |
备注
如果在执行任何命令之前发生故障, 则 failedCommandNumber 参数将设置为 –1。
要求
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2012 R2 |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |