NDIS_MAKE_NET_LUID macro (ntddndis.h)

The NDIS_MAKE_NET_LUID macro builds a NET_LUID value from an interface type and a NET_LUID index.

Syntax

void NDIS_MAKE_NET_LUID(
   _pNetLuid,
   _IfType,
   _NetLuidIndex
);

Parameters

_pNetLuid

A pointer to a caller-supplied NET_LUID union. NDIS_MAKE_NET_LUID returns the newly created NET_LUID value in this variable.

_IfType

The Internet Assigned Numbers Authority (IANA) interface type. NDIS_MAKE_NET_LUID writes the value at _IfType to the IfType member of the NET_LUID union that the caller provided at _pNetLuid . For a list of interface types, see NDIS Interface Types.

_NetLuidIndex

A NET_LUID index that the caller allocated with the NdisIfAllocateNetLuidIndex function. NDIS_MAKE_NET_LUID writes the value at _NetLuidIndex to the NetLuidIndex member of the NET_LUID union that the caller provided at _pNetLuid .

Return value

None

Remarks

NDIS network interface providers should use the NDIS_MAKE_NET_LUID macro to build a NET_LUID value. The provider passes the resulting NET_LUID value to the NdisIfRegisterInterface function to register the interface with NDIS.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Desktop
Header ntddndis.h (include ndis.h)

See also

NdisIfAllocateNetLuidIndex

NdisIfRegisterInterface

NET_LUID