Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RegisterClusterNotifyV2 function

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

Syntax


DWORD WINAPI RegisterClusterNotifyV2(
  _In_ HCHANGE                hChange,
  _In_ NOTIFY_FILTER_AND_TYPE Filter,
  _In_ HANDLE                 hObject,
  _In_ DWORD_PTR              dwNotifyKey
);

typedef DWORD (WINAPI *PCLUSAPI_REGISTER_CLUSTER_NOTIFY_V2)(
    _In_ HCHANGE                hChange,
    _In_ NOTIFY_FILTER_AND_TYPE Filter,
    _In_ HANDLE                 hObject,
    _In_ DWORD_PTR              dwNotifyKey
);

Parameters

hChange [in]

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

Filter [in]

A NOTIFY_FILTER_AND_TYPE structure that specifies the event type to create.

hObject [in]

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.

dwNotifyKey [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2016

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Failover Cluster Management Function

 

 

Show: