RegisterClusterNotifyV2 function (clusapi.h)

Registers an event type with a notification port by adding the notification key to the event type.

Syntax

DWORD RegisterClusterNotifyV2(
  [in] HCHANGE                hChange,
  [in] NOTIFY_FILTER_AND_TYPE Filter,
  [in] HANDLE                 hObject,
  [in] DWORD_PTR              dwNotifyKey
);

Parameters

[in] hChange

A handle to a notification port that is created with the CreateClusterNotifyPortV2 function.

[in] Filter

A NOTIFY_FILTER_AND_TYPE structure that specifies the event type to create.

[in] hObject

A handle to the failover cluster object that is affected by the event as specified in the dwFilterType parameter. The type of handle depends on the value of dwFilterType.

[in] dwNotifyKey

The notification key that is returned from the
GetClusterNotify function when the requested event occurs.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

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

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows ServerĀ 2016
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See also

Failover Cluster Management Function