Share via


ConvertInterfaceLuidToGuid (NETIOAPI) (Compact 7)

3/12/2014

This function converts a locally unique identifier (LUID) for a network interface to a globally unique identifier (GUID) for the interface.

Syntax

NETIOAPI_API
  ConvertInterfaceLuidToGuid(
    IN const NET_LUID*  InterfaceLuid,
    OUT GUID*  InterfaceGuid
    );

Parameters

  • InterfaceLuid
    A pointer to a NET_LUID structure for the network interface.
  • InterfaceGuid
    A pointer to the GUID for the network interface.

Return Value

ConvertInterfaceLuidToGuid returns STATUS_SUCCESS if the function succeeds. If the function fails, the InterfaceGuid parameter is set to NULL, and ConvertInterfaceLuidToGuid returns the following error code:

Error Code Meaning

STATUS_INVALID_PARAMETER

One of the parameters is invalid. ConvertInterfaceLuidToGuid returns this error if either InterfaceLuid or InterfaceGuid is NULL, or if InterfaceLuid is invalid.

Remarks

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

See Also

Reference

IP Helper Kernel-Mode Functions
ConvertInterfaceAliasToLuid (NETIOAPI)
ConvertInterfaceGuidToLuid (NETIOAPI)
ConvertInterfaceIndexToLuid (NETIOAPI)
ConvertInterfaceLuidToIndex (NETIOAPI)
ConvertInterfaceLuidToNameA (NETIOAPI)
ConvertInterfaceLuidToNameW (NETIOAPI)
ConvertInterfaceNameToLuidA (NETIOAPI)
ConvertInterfaceNameToLuidW (NETIOAPI)
NET_LUID