NDK_FN_REJECT callback function (ndkpi.h)

The NdkReject (NDK_FN_REJECT) function rejects an incoming NDK connection request.

Syntax

NDK_FN_REJECT NdkFnReject;

NTSTATUS NdkFnReject(
  [in] NDK_CONNECTOR *pNdkConnector,
       const PVOID pPrivateData,
  [in] ULONG PrivateDataLength
)
{...}

Parameters

[in] pNdkConnector

A pointer to an NDK connector object (NDK_CONNECTOR).

pPrivateData

A pointer to private data that is sent back with the reject request.

[in] PrivateDataLength

The length, in bytes, of the private data that is provided in the pPrivateData parameter.

Return value

The NdkReject function returns one of the following NTSTATUS codes.

Return code Description
STATUS_SUCCESS
The reject request was successful.
STATUS_CONNECTION_ABORTED
The connecting peer abandoned the connection establishment.
Other status codes
An error occurred.

Remarks

NdkReject rejects an incoming connection request over a listener. A connection request can also be rejected for a connection request where the NdkConnect (NDK_FN_CONNECT) function has been completed and the consumer rejects the connection. For example, the consumer rejects the connection because of the values in the pInboundReadLimit, pOutboundReadLimit, or pPrivateData parameters available with the NdkGetConnectionData (NDK_FN_GET_CONNECTION_DATA) function.

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_CONNECTOR

NDK_CONNECTOR_DISPATCH

NDK_FN_ACCEPT

NDK_FN_CONNECT

NDK_FN_GET_CONNECTION_DATA