NDK_FN_GET_PEER_ADDRESS funzione di callback (ndkpi.h)
La funzione NdkGetPeerAddress (NDK_FN_GET_PEER_ADDRESS) restituisce l'indirizzo remoto per una connessione NDK.
Sintassi
NDK_FN_GET_PEER_ADDRESS NdkFnGetPeerAddress;
NTSTATUS NdkFnGetPeerAddress(
[in] NDK_CONNECTOR *pNdkConnector,
PSOCKADDR pAddress,
ULONG *pAddressLength
)
{...}
Parametri
[in] pNdkConnector
Puntatore a un oggetto connettore NDK (NDK_CONNECTOR).
pAddress
In questo buffer viene restituito un indirizzo remoto.
pAddressLength
Le dimensioni, in byte, del buffer di indirizzi per l'input e le dimensioni, in byte, dell'indirizzo effettivo scritto nel buffer per l'output.
Valore restituito
La funzione NdkGetPeerAddress restituisce uno dei codici NTSTATUS seguenti.
Codice restituito | Descrizione |
---|---|
|
Un indirizzo remoto è stato scritto nel buffer nel parametro pAddress . |
|
La dimensione del buffer specificata nell'input del parametro *pAddressLength è troppo piccola. *pAddressLength valore di output viene aggiornato con le dimensioni del buffer necessarie. |
|
Si è verificato un errore. |
Commenti
NdkGetPeerAddress restituisce l'indirizzo remoto per una connessione.
Requisiti
Requisito | Valore |
---|---|
Client minimo supportato | None supported,Supported in NDIS 6.30 and later. |
Server minimo supportato | Windows Server 2012 |
Piattaforma di destinazione | Windows |
Intestazione | ndkpi.h (include Ndkpi.h) |
IRQL | <=DISPATCH_LEVEL |