NDIS_MAKE_NET_LUID
Collapse the table of content
Expand the table of content

NDIS_MAKE_NET_LUID macro

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(
   PNET_LUID _pNetLuid,
   ULONG64   _IfType,
   ULONG64   _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

Target platform

Desktop

Version

Supported in NDIS 6.0 and later.

Header

Ntddndis.h (include Ntddndis.h)

See also

NdisIfAllocateNetLuidIndex
NdisIfRegisterInterface
NET_LUID

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft