NDK_FN_CONTROL_CONNECT_EVENTS callback function (ndkpi.h)

The NdkControlConnectEvents (NDK_FN_CONTROL_CONNECT_EVENTS) function pauses and restarts NDK connect event callback functions.

Syntax

NDK_FN_CONTROL_CONNECT_EVENTS NdkFnControlConnectEvents;

void NdkFnControlConnectEvents(
  [in] NDK_LISTENER *pNdkListener,
  [in] BOOLEAN Pause
)
{...}

Parameters

[in] pNdkListener

A pointer to an NDK listener object (NDK_LISTENER).

[in] Pause

A BOOLEAN value that specifies if a connection is paused or restarted. If Pause is TRUE the connection is paused. If Pause is FALSE the connection is restarted.

Return value

None

Remarks

This function is closely related to the NdkConnectEventCallback (NDK_FN_CONNECT_EVENT_CALLBACK) function. The NDK_FN_CONNECT_EVENT_CALLBACK function is called by an NDK provider to notify a consumer about an incoming connection request. To pause the reception of connect event callbacks, an NDK consumer can pass TRUE in the Pause parameter. When a connection is paused, the incoming connection requests must be treated as if there is no NDK listener (NDK_LISTENER) on the targeted address.

To restart the reception of connect event callbacks, the consumer passes FALSE in the Pause parameter.

Requirements

Requirement Value
Minimum supported client None supported,Supported in NDIS 6.30 and later.
Minimum supported server Windows ServerĀ 2012
Target Platform Windows
Header ndkpi.h (include Ndkpi.h)
IRQL <=DISPATCH_LEVEL

See also

NDK_FN_CONNECT_EVENT_CALLBACK

NDK_LISTENER