ClusterRegCreateBatchNotifyPort 函数 (clusapi.h)

创建批量通知端口的订阅。 不再需要批处理通知端口后,需要将其关闭。 这是通过 ClusterRegCloseBatchNotifyPort 函数完成的。

语法

LONG ClusterRegCreateBatchNotifyPort(
  [in]  HKEY          hKey,
  [out] HREGBATCHPORT *phBatchNotifyPort
);

参数

[in] hKey

群集注册表项。 在此密钥或其下方的密钥上执行的任何更新都将发布到通知端口。

[out] phBatchNotifyPort

批处理通知端口的句柄,该端口允许通过 ClusterRegGetBatchNotification 函数进行后续读取批处理通知。

返回值

如果操作成功,函数将返回 ERROR_SUCCESS (0) 。

如果操作失败,该函数将返回 系统错误代码

注解

PCLUSTER_REG_CREATE_BATCH_NOTIFY_PORT类型定义指向此函数的指针。

要求

要求
最低受支持的客户端 无受支持的版本
最低受支持的服务器 Windows Server 2008 Datacenter、Windows Server 2008 Enterprise
目标平台 Windows
标头 clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

另请参阅

群集注册表访问函数

ClusterRegCloseBatchNotifyPort

ClusterRegGetBatchNotification