NDK_FN_REJECT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndkpi.h

NDK_FN_REJECT NdkFnReject;

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

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ndkpi-ndk_fn_reject)

NDK_FN_REJECT callback function

Description

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

Parameters

pNdkConnector [in]

A pointer to an NDK connector object (NDK_CONNECTOR).

PrivateDataLength [in]

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

pPrivateData

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

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.

See also

NDK_CONNECTOR

NDK_CONNECTOR_DISPATCH

NDK_FN_ACCEPT

NDK_FN_CONNECT

NDK_FN_GET_CONNECTION_DATA