ClusterRegReadBatchReplyNextCommand 函数 (clusapi.h)
从读取批处理结果中读取下一个命令。
语法
LONG ClusterRegReadBatchReplyNextCommand(
[in] HREGREADBATCHREPLY hRegReadBatchReply,
[out] CLUSTER_READ_BATCH_COMMAND *pBatchCommand
);
参数
[in] hRegReadBatchReply
通过调用 ClusterRegCloseReadBatch 函数创建的读取批处理结果的句柄。 稍后必须通过调用 ClusterRegCloseReadBatchReply 函数关闭此句柄。
[out] pBatchCommand
指向包含 read 命令相关信息 的 CLUSTER_READ_BATCH_COMMAND 结构的指针。
返回值
函数返回以下 系统错误代码之一。
返回代码/值 | 说明 |
---|---|
|
操作成功。 |
|
hRegReadBatchReply 为 NULL 或无效。 |
|
hRegReadBatchReply 中没有更多信息。 |
注解
读取批处理结果中的记录数等于读取批处理中的命令数。 此外,结果的顺序与添加到读取批处理的命令的顺序相同。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 无受支持的版本 |
最低受支持的服务器 | Windows Server 2012 |
目标平台 | Windows |
标头 | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |