Adds an event type to the list of events stored for a notification port. The PCLUSAPI_REGISTER_CLUSTER_NOTIFY type defines a pointer to this function.
DWORD RegisterClusterNotify( HCHANGE hChange, DWORD dwFilterType, HANDLE hObject, DWORD_PTR dwNotifyKey );
Handle to a notification port created with the CreateClusterNotifyPort function.
Bitmask of flags that describes the event to be added to the set of events currently being monitored by the notification port. For more information about these event types, see CreateClusterNotifyPort. The dwFilterType parameter can be set to one of the following flags.
The queue receives a notification when the cluster's prioritized list of internal networks changes.
The queue receives a notification when the connection to the cluster identified by hCluster is reestablished after a brief disconnect. Some events generated immediately before or after this event may have been lost. You need to close all open connections and reconnect to receive accurate state information.
The queue receives a notification when the cluster becomes unavailable, meaning that all attempts to communicate with the cluster fail. This notification is reserved for future use.
The queue receives a notification when a new group is created in the cluster.
The queue receives a notification when an existing group is deleted.
The queue receives a notification when the properties of an existing group change.
The queue receives a notification when a group changes state.
The queue receives a notification when a handle to a cluster object is closed.
The queue receives a notification when a network interface is permanently removed from a cluster node.
The queue receives a notification when the properties of an existing network interface change.
The queue receives a notification when a network interface changes state. For a list of the possible network interface state values, see GetClusterNetInterfaceState.
The queue receives a notification when a new network is added to the cluster environment.
The queue receives a notification when a network is permanently removed from the cluster environment.
The queue receives a notification when the properties of an existing network change.
The queue receives a notification when a network changes state. For a list of the possible network state values, see GetClusterNetworkState.
The queue receives a notification when a new node is added to the cluster. A node can be added only when the Cluster service is initially installed on the node.
This notification is reserved for future use.
The queue receives a notification when a node changes state.
The queue receives a notification when the quorum resource changes state.
The queue receives a notification when a cluster database key's attributes are changed.
The queue receives a notification when a change to a name is made in the cluster database.
Indicates that the other CLUSTER_CHANGE_REGISTRY events apply to the root of the cluster database and to all of the subkeys. If CLUSTER_CHANGE_REGISTRY_SUBTREE is not specified, the notifications apply only to the root.
The queue receives a notification when a value of the specified cluster database key is changed or deleted.
The queue receives a notification when a new resource is created in the cluster.
The queue receives a notification when a resource is deleted.
Indicates that a notification should be issued when the properties of a resource change.
The queue receives a notification when a resource changes state.
The queue receives a notification when a new resource type is created in the cluster.
The queue receives a notification when an existing resource type is deleted.
The queue receives a notification when the properties of a resource type change.
Handle to the failover cluster object affected by the event specified in the dwFilterType parameter. The type of handle depends on the value of dwFilterType as described in the following list.
HCLUSTER, if the flag is used by itself; otherwise, the handle that is associated with the flag that CLUSTER_CHANGE_HANDLE_CLOSE is combined with becomes the handle type.
For example, if the value of the dwFilterType parameter is CLUSTER_CHANGE_GROUP_PROPERTY | CLUSTER_CHANGE_HANDLE_CLOSE, then the type of handle for the hObject parameter becomes HGROUP, because the CLUSTER_CHANGE_GROUP_PROPERTY flag is associated with the HGROUP handle type.
The cluster database functions return a valid cluster database key that can be used to set hObject when dwFilterType is set to an event type affecting the cluster database.
Notification key returned from GetClusterNotify when the requested event occurs.
If the operation succeeds, the function returns ERROR_SUCCESS.
If the operation fails, the function returns a system error code.
The RegisterClusterNotify function enables an application that has already created a notification port with CreateClusterNotifyPort to register for an additional event that affects a node, resource, or group.
To receive notifications of cluster database changes, one or more of the flags applicable to the database must be set in the dwFilterType parameter. Applicable flags start with the prefix CLUSTER_CHANGE_REGISTRY. Making manual changes to the cluster database through the registry editor, RegEdit.exe, does not generate notifications.
See the Notification Port Example.
|Minimum supported client||None supported|
|Minimum supported server||Windows Server 2008 Enterprise, Windows Server 2008 Datacenter|