NetRequestGetPortNumber function

Retrieves the port number for the network request object.

Syntax

NDIS_PORT_NUMBER NetRequestGetPortNumber(
  NETREQUEST Request
);

Parameters

Request

A handle to a network request object.

Return value

Returns the port number corresponding to the network request object. If the port is unknown or default, returns zero.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header netrequest.h (include netadaptercx.h)
IRQL <= DISPATCH_LEVEL

See also

NDIS_OID_REQUEST