RegisterClusterResourceTypeNotifyV2 function (clusapi.h)

Adds a notification type to a cluster notification port.This allows an application to register for notification events that only affect a particular cluster object.

Syntax

DWORD RegisterClusterResourceTypeNotifyV2(
  [in] HCHANGE   hChange,
  [in] HCLUSTER  hCluster,
  [in] LONGLONG  Flags,
  [in] LPCWSTR   resTypeName,
  [in] DWORD_PTR dwNotifyKey
);

Parameters

[in] hChange

A handle to the notification port.

[in] hCluster

A handle to the cluster object.

[in] Flags

A CLUSTER_CHANGE_RESOURCE_TYPE_V2 enumeration value that specifies the notification type to add.

[in] resTypeName

A pointer to a null-terminated Unicode string that contains the name of the resource type.

[in] dwNotifyKey

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

Return value

ERROR_SUCCESS if the operation is successful; otherwise, 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

Resource Type Management Functions