NDK_FN_GET_PEER_ADDRESS routine

The NdkGetPeerAddress (NDK_FN_GET_PEER_ADDRESS) function returns the remote address for an NDK connection.

Syntax


NDK_FN_GET_PEER_ADDRESS NdkGetPeerAddress;

NTSTATUS NdkGetPeerAddress(
  _In_  NDK_CONNECTOR *pNdkConnector,
  _Out_writes_bytes_to_opt_(*pAddressLength, *pAddressLength) PSOCKADDR pAddress,
  _Inout_ ULONG *pAddressLength
)
{ ... }

Parameters

pNdkConnector [in]

A pointer to an NDK connector object (NDK_CONNECTOR).

pAddress

A remote address is returned in this buffer.

pAddressLength

The size, in bytes, of the address buffer for input, and the size, in bytes, of the actual address written into the buffer for output.

Return value

The NdkGetPeerAddress function returns one of the following NTSTATUS codes.

Return codeDescription
STATUS_SUCCESS

A remote address was written to the buffer in the pAddress parameter.

STATUS_BUFFER_TOO_SMALL

The buffer size specified in the *pAddressLength parameter input is too small. *pAddressLength output value is updated with the required buffer size.

Other status codes

An error occurred.

 

Remarks

NdkGetPeerAddress returns the remote address for a connection.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Version

Supported in NDIS 6.30 and later.

Header

Ndkpi.h (include Ndkpi.h)

IRQL

<=DISPATCH_LEVEL

See also

NDK_CONNECTOR
NDK_CONNECTOR_DISPATCH

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft