Windows Dev Center

ClusterRegCreateBatchNotifyPort function

Creates a subscription to a batch notification port. The batch notification port needs to be closed after it is no longer needed. This is done via the ClusterRegCloseBatchNotifyPort function.

Syntax


LONG WINAPI ClusterRegCreateBatchNotifyPort(
  _In_  HKEY          hKey,
  _Out_ HREGBATCHPORT *phBatchNotifyPort
);

Parameters

hKey [in]

A cluster registry key. Any updates performed at this key or keys below it will be posted to a notification port.

phBatchNotifyPort [out]

A handle to a batch notification port that allows subsequent reading batch notifications via the ClusterRegGetBatchNotification function.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS (0).

If the operation fails, the function returns a system error code.

Remarks

The PCLUSTER_REG_CREATE_BATCH_NOTIFY_PORT type defines a pointer to this function.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Cluster Registry Access Functions
ClusterRegCloseBatchNotifyPort
ClusterRegGetBatchNotification

 

 

Show:
© 2015 Microsoft