NDK_FN_CONTROL_CONNECT_EVENTS routine

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

Syntax


NDK_FN_CONTROL_CONNECT_EVENTS NdkControlConnectEvents;

VOID NdkControlConnectEvents(
  _In_ NDK_LISTENER *pNdkListener,
  _In_ BOOLEAN      Pause
)
{ ... }

Parameters

pNdkListener [in]

A pointer to an NDK listener object (NDK_LISTENER).

Pause [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Target platform

Desktop

Version

Supported in NDIS 6.30 and later.

Header

Ndkpi.h (include Ndkpi.h)

IRQL

<=DISPATCH_LEVEL

See also

NDK_LISTENER
NDK_FN_CONNECT_EVENT_CALLBACK

 

 

Send comments about this topic to Microsoft

显示:
© 2015 Microsoft