NetRequestGetSwitchId function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

Retrieves the switch identifier for the net request.

Syntax

NDIS_NIC_SWITCH_ID NetRequestGetSwitchId(
  NETREQUEST Request
);

Parameters

Request

A handle to a network request object.

Return Value

Returns an NDIS_NIC_SWITCH_ID value that specifies a switch identifier. The switch identifier is an integer between zero and the number of switches that the network adapter supports. An NDIS_DEFAULT_SWITCH_ID value indicates the default network adapter switch.

Requirements

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

See Also

NDIS_NIC_SWITCH_PARAMETERS