Skip to content

Latest commit

 

History

History
152 lines (100 loc) · 4.13 KB

nf-netioapi-convertinterfaceindextoluid.md

File metadata and controls

152 lines (100 loc) · 4.13 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:netioapi.ConvertInterfaceIndexToLuid
ConvertInterfaceIndexToLuid function (netioapi.h)
Converts a local index for a network interface to the locally unique identifier (LUID) for the interface.
ConvertInterfaceIndexToLuid
ConvertInterfaceIndexToLuid function [IP Helper]
iphlp.convertinterfaceindextoluid
netioapi/ConvertInterfaceIndexToLuid
iphlp\convertinterfaceindextoluid.htm
IpHlp
c757228c-93f1-4545-8921-9d048bca580c
12/05/2018
ConvertInterfaceIndexToLuid, ConvertInterfaceIndexToLuid function [IP Helper], iphlp.convertinterfaceindextoluid, netioapi/ConvertInterfaceIndexToLuid
netioapi.h
Iphlpapi.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Iphlpapi.lib
Iphlpapi.dll
Windows
19H1
ConvertInterfaceIndexToLuid
netioapi/ConvertInterfaceIndexToLuid
c++
APIRef
kbSyntax
DllExport
Iphlpapi.dll
ConvertInterfaceIndexToLuid

ConvertInterfaceIndexToLuid function

-description

The ConvertInterfaceIndexToLuid function converts a local index for a network interface to the locally unique identifier (LUID) for the interface.

-parameters

-param InterfaceIndex [in]

The local index value for a network interface.

-param InterfaceLuid [out]

A pointer to the NET_LUID for this interface.

-returns

On success, ConvertInterfaceIndexToLuid returns NO_ERROR. Any nonzero return value indicates failure and a NULL is returned in the InterfaceLuid parameter.

Error code Meaning
ERROR_FILE_NOT_FOUND
The system cannot find the file specified. This error is returned if the network interface specified by the InterfaceIndex parameter was not a value on the local machine.
ERROR_INVALID_PARAMETER
One of the parameters was invalid. This error is returned if the InterfaceLuid parameter was NULL or if the InterfaceIndex parameter was invalid.

-remarks

The ConvertInterfaceIndexToLuid function is available on Windows Vista and later.

The ConvertInterfaceIndexToLuid function is protocol independent and works with network interfaces for both the IPv6 and IPv4 protocol.

-see-also

ConvertInterfaceAliasToLuid

ConvertInterfaceGuidToLuid

ConvertInterfaceLuidToAlias

ConvertInterfaceLuidToGuid

ConvertInterfaceLuidToIndex

ConvertInterfaceLuidToNameA

ConvertInterfaceLuidToNameW

ConvertInterfaceNameToLuidA

ConvertInterfaceNameToLuidW

NET_LUID

if_indextoname

if_nametoindex