ApiAddNotifyNetInterface (Opnum 99)

(Protocol Version 2) The ApiAddNotifyNetInterface method instructs the server to begin queuing event indications to the designated version 1 notification port. These indications, which correspond to internal cluster network interface state and configuration changes that map to a value in the designated filter, are queued only for the cluster network interface object represented by the designated context handle.

The server MUST queue a separate event indication to the port for every filter that has the CLUSTER_CHANGE (section value set that corresponds to the internal event.

The server SHOULD accept an ApiAddNotifyNetInterface request if its protocol server state is read-only, and the server MUST accept the request for processing if it is in the read/write state, as specified in section 3.1.1.

 error_status_t ApiAddNotifyNetInterface(
   [in] HNOTIFY_RPC hNotify,
   [in] HNETINTERFACE_RPC hNetInterface,
   [in] DWORD dwFilter,
   [in] DWORD dwNotifyKey,
   [out] DWORD *dwStateSequence

hNotify: An HNOTIFY_RPC (section context handle that was obtained in a previous ApiCreateNotify (section method call.

hNetInterface: An HNETINTERFACE_RPC (section context handle that was obtained in a previous ApiOpenNetInterface (section method call.

dwFilter: A 32-bit integer containing one or more cluster network interface specific values in a CLUSTER_CHANGE (section enumeration. The value of this parameter MUST be set to the bitwise OR operator of one or more of the following values: CLUSTER_CHANGE_NETINTERFACE_ADD, CLUSTER_CHANGE_NETINTERFACE_DELETE, CLUSTER_CHANGE_NETINTERFACE_STATE, or CLUSTER_CHANGE_NETINTERFACE_PROPERTY.

dwNotifyKey: A 32-bit integer context value chosen by the client. This value MUST be returned to the client via a subsequent completion of the ApiGetNotify (section method, if the name of the object pertaining to the event  matches the name of the object designated by hNetInterface (the second parameter).

dwStateSequence: The address of a 32-bit integer value that the server MUST write upon successful completion of this method. The client MUST retain the most current value of this parameter and provide it back to the server via the StateSequence parameter of the ApiReAddNotifyNetInterface (section method.

Return Values: The method MUST return the following error codes for the specified conditions.

Return value/code







The data that is pointed to by the hNotify parameter or the hNetInterface parameter does not respectively represent a valid HNOTIFY_RPC (section or HNETINTERFACE_RPC (section context handle.

For any other condition, this method MUST return a value that is not one of the values listed in the preceding table. The client MUST behave in one consistent, identical manner for all values that are not listed in the preceding table. The client SHOULD treat errors specified in as recoverable errors and initiate the reconnect procedure as specified in section