// 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
No description available.
The NdkReject (NDK_FN_REJECT) function rejects an incoming NDK connection request.
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.
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. |
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.